You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marek Chowaniok <ma...@post.cz> on 2006/10/19 13:12:56 UTC
adding dependency jars in jar project
Hi
I have problem with creating jar project which has dependecy on another
projects.
I know that the 'jar project' will not include dependecy jars (as 'war
project' does) and I have read that the assembly plugin should do it
somehow.
I am playing with it few days, trying find out as much as possible but
without success.
Here are my projects :
REPORTGENERATOR
|-ReportGeneratorMpress
|-ReportGeneratorLogic
|-ReportGeneratorHibernate
|-ReportGeneratorCommon
I need to create 1 jar file with all those modules. This is done in
ReportGeneratorLogic (we used for building MyEclipseIde software and we are
developing in Eclipse).
How should look the result:
ReportGeneratorLogic.jar:
|-com
|-xyz
|-report (here are sources of those modules)
|-lib (here are dependecy jars from all those modules)
|-META-INF (meta-inf files)
Can you help me to create this jar file? Should I use assembly (and how) or
something else?
Where should I configure assembly plugin? in Parent pom or in
ReportGeneratoLogic pom.xml ?
Thanks in advance
--
View this message in context: http://www.nabble.com/adding-dependency-jars-in-jar-project-tf2472625.html#a6894579
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
how to package and install dependecy jars in repository and local target
Posted by "Chen, Anning" <an...@gs.com>.
Is there a way to package or install jars from your dependencies in your
repository or target dirs? I want to include all jars used for
compilation in the module that I'm building instead of just the module
jar. That way, I can install the entire package in the repository and
users can get it and use right away without having to add the required
jars. If this method is not feasible, is there a way to download or
deploy the package from the repository with all its dependency jars?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: adding dependency jars in jar project
Posted by Wayne Fay <wa...@gmail.com>.
I see you're using Nabble, so you should be able to easily search this
list and find plenty of examples using the Assembly plugin. Search
using the term "maven-assembly-plugin".
Having said that, this discussion (from yesterday) might be helpful,
as it sounds similar to what you are looking for:
From: Mirko Leschikar <mi...@agile.com>
To: Maven Users List <us...@maven.apache.org>
Date: Oct 18, 2006 3:11 AM
Subject: Re: Aggregate m2 modules in a unique jar file
Wayne
On 10/19/06, Marek Chowaniok <ma...@post.cz> wrote:
>
> Hi
> I have problem with creating jar project which has dependecy on another
> projects.
>
> I know that the 'jar project' will not include dependecy jars (as 'war
> project' does) and I have read that the assembly plugin should do it
> somehow.
>
> I am playing with it few days, trying find out as much as possible but
> without success.
>
> Here are my projects :
>
> REPORTGENERATOR
> |-ReportGeneratorMpress
> |-ReportGeneratorLogic
> |-ReportGeneratorHibernate
> |-ReportGeneratorCommon
>
> I need to create 1 jar file with all those modules. This is done in
> ReportGeneratorLogic (we used for building MyEclipseIde software and we are
> developing in Eclipse).
>
> How should look the result:
>
> ReportGeneratorLogic.jar:
> |-com
> |-xyz
> |-report (here are sources of those modules)
> |-lib (here are dependecy jars from all those modules)
> |-META-INF (meta-inf files)
>
> Can you help me to create this jar file? Should I use assembly (and how) or
> something else?
> Where should I configure assembly plugin? in Parent pom or in
> ReportGeneratoLogic pom.xml ?
>
> Thanks in advance
> --
> View this message in context: http://www.nabble.com/adding-dependency-jars-in-jar-project-tf2472625.html#a6894579
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org