Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Including dependencies in final JAR

    8 answers - 193 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    How do I tell maven to include my dependency jars in my final jar file?
    I am referencing
    ,
    but none of the scopes described seems to do that.
    Thanks,
    Alex.
  • No.1 | | 399 bytes | |

    - I just realised something - maybe what I'm trying to do is wrong
    here do I really want an ear file instead?

    Alex

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:

    How do I tell maven to include my dependency jars in my final jar file?

    I am referencing
    , but none of the scopes described seems to do that.

    Thanks,

    Alex.
  • No.2 | | 809 bytes | |

    Depends entirely on what you're building

    Do you want an EAR (for J2EE app) or a JAR (for various other types of apps)?

    Wayne

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    - I just realised something - maybe what I'm trying to do is wrong
    here do I really want an ear file instead?

    Alex

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:

    How do I tell maven to include my dependency jars in my final jar file?

    I am referencing
    , but none of the scopes described seems to do that.

    Thanks,

    Alex.
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.3 | | 1031 bytes | |

    Looking at it now, I think what I want is a JAR not an EAR. I have a stand
    alone app that is fired from cron.

    Alex

    7/30/06, Wayne Fay <waynefay (AT) gmail (DOT) comwrote:

    Depends entirely on what you're building

    Do you want an EAR (for J2EE app) or a JAR (for various other types of
    apps)?

    Wayne

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    - I just realised something - maybe what I'm trying to do is wrong
    here do I really want an ear file instead?

    Alex

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:

    How do I tell maven to include my dependency jars in my final jar
    file?

    I am referencing

    , but none of the scopes described seems to do that.

    Thanks,

    Alex.
    >
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --
  • No.4 | | 1438 bytes | |

    Yes, it sounds like you want a Jar

    Search the user list for assembly plugin plus jar-with-dependencies parameter.

    Wayne

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    Looking at it now, I think what I want is a JAR not an EAR. I have a stand
    alone app that is fired from cron.

    Alex

    7/30/06, Wayne Fay <waynefay (AT) gmail (DOT) comwrote:

    Depends entirely on what you're building

    Do you want an EAR (for J2EE app) or a JAR (for various other types of
    apps)?

    Wayne

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    - I just realised something - maybe what I'm trying to do is wrong
    here do I really want an ear file instead?

    Alex

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:

    How do I tell maven to include my dependency jars in my final jar
    file?

    I am referencing

    , but none of the scopes described seems to do that.

    Thanks,

    Alex.
    >
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.5 | | 1746 bytes | |

    Not to ask a stupid question, but why should I have to use a plugin for
    this? This is standard functionality that many projects require. Shouldn't
    this be part of the standard maven goals?

    Alex

    7/30/06, Wayne Fay <waynefay (AT) gmail (DOT) comwrote:

    Yes, it sounds like you want a Jar

    Search the user list for assembly plugin plus jar-with-dependencies
    parameter.

    Wayne

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    Looking at it now, I think what I want is a JAR not an EAR. I have a
    stand
    alone app that is fired from cron.

    Alex

    7/30/06, Wayne Fay <waynefay (AT) gmail (DOT) comwrote:

    Depends entirely on what you're building

    Do you want an EAR (for J2EE app) or a JAR (for various other types of
    apps)?

    Wayne

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    - I just realised something - maybe what I'm trying to do is
    wrong
    here do I really want an ear file instead?

    Alex

    7/30/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:

    How do I tell maven to include my dependency jars in my final jar
    file?

    I am referencing

    , but none of the scopes described seems to do that.

    Thanks,

    Alex.
    >
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >
    >
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --
  • No.6 | | 1312 bytes | |

    A list of goals isn't really much of an 'about' the plugin. It would be
    more usefull to describe what the plugin can do and provide tutorials

    (I'm in the process of getting sorted out with a confluence id etc I'll
    be happy to help write some docs).

    Alex.

    7/30/06, Barrie Treloar <baerrach (AT) gmail (DOT) comwrote:

    7/31/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    Not to ask a stupid question, but why should I have to use a plugin for
    this? This is standard functionality that many projects
    require. Shouldn't
    this be part of the standard maven goals?

    If you have a standalone app then you probably want to create an
    binary assembly that would include your jar file (with correct
    Class-Path in the Manifest file), any dependent libraries, and config
    files, any documentation.

    To do this you will want to use the

    Search the archives, there should be plenty of examples on this.
    I tend not to use the built in descriptors as I find they don't meet my
    needs.
    It is very easy to write your assembly descriptors.

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --
  • No.7 | | 922 bytes | |

    7/31/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    Not to ask a stupid question, but why should I have to use a plugin for
    this? This is standard functionality that many projects require. Shouldn't
    this be part of the standard maven goals?

    If you have a standalone app then you probably want to create an
    binary assembly that would include your jar file (with correct
    Class-Path in the Manifest file), any dependent libraries, and config
    files, any documentation.

    To do this you will want to use the

    Search the archives, there should be plenty of examples on this.
    I tend not to use the built in descriptors as I find they don't meet my needs.
    It is very easy to write your assembly descriptors.

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.8 | | 830 bytes | |

    7/31/06, Alex Turner <armtuk (AT) gmail (DOT) comwrote:
    A list of goals isn't really much of an 'about' the plugin. It would be
    more usefull to describe what the plugin can do and provide tutorials

    Err,
    Did you check the section on the left?
    It reads:
    * Introduction
    * How to Use
    * Examples
    * Descriptor Format
    * Predefined Descriptors

    Admittedly the docs are sometimes thin and assembly could use a bit
    more in some places, but there is enough there to get started on.
    It's only when you want to do more advanced things that you will need
    more help and search on the archives to find it.

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

Re: Including dependencies in final JAR


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Java"

EMSDN.COM