Re: Aggregate m2 modules in a unique jar file

2006-10-19 Thread Thomas Recloux

Thanks a lot !

2006/10/18, Dan Tran <[EMAIL PROTECTED]>:

create jar packaging project with empty source.  Use maven-dependency-plugin
to unpack all your jars into
${project.output.directory} before package phase.  Wala, all your unpacked
classes got pack again in a deployable jar.

-D


On 10/17/06, Thomas Recloux <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
>
> I'have got a projet with some modules producing their jars, but I'd
> like to produce one jar including all modules classes.
>
> I looked at the assembly plugin, but :
> - There is not "jar" format
> - I think I wil not be able to install or deploy the generated jar
> in local and remote repos.
>
> Thanks, Thomas
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Thomas Recloux a.k.a Karmelitre
http://karmelitre.tartachuc.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Aggregate m2 modules in a unique jar file

2006-10-18 Thread Mirko Leschikar
Hi Thomas,

Thomas Recloux schrieb:
> Hello all,
> 
> 
> I'have got a projet with some modules producing their jars, but I'd
> like to produce one jar including all modules classes.
> 
> I looked at the assembly plugin, but :
>  - There is not "jar" format
>  - I think I wil not be able to install or deploy the generated jar
> in local and remote repos.

I was asking a similar question a few days ago and thanks to this list,
I found a solution:

I have 3 modules, A, B and C. To create a big archive, P, including all
the class files, I had to add this to the parent pom:

...

  
  ...
  
  maven-assembly-plugin
  
   
   descriptors/P-assembly.xml
  
  P-${project.version}
  target/assembly/work
  
  

  ...

...


And P-assembly.xml: $groupId has to be replaced by your project groupid

  
jar
  
  false
  

  
$groupId:A
$groupId:B
$groupId:C
  
  
true
  

  


And now:

mvn package assembly:assembly

Regards
Mirko


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Aggregate m2 modules in a unique jar file

2006-10-17 Thread Dan Tran

create jar packaging project with empty source.  Use maven-dependency-plugin
to unpack all your jars into
${project.output.directory} before package phase.  Wala, all your unpacked
classes got pack again in a deployable jar.

-D


On 10/17/06, Thomas Recloux <[EMAIL PROTECTED]> wrote:


Hello all,


I'have got a projet with some modules producing their jars, but I'd
like to produce one jar including all modules classes.

I looked at the assembly plugin, but :
- There is not "jar" format
- I think I wil not be able to install or deploy the generated jar
in local and remote repos.

Thanks, Thomas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Aggregate m2 modules in a unique jar file

2006-10-17 Thread Thomas Recloux

Hello all,


I'have got a projet with some modules producing their jars, but I'd
like to produce one jar including all modules classes.

I looked at the assembly plugin, but :
 - There is not "jar" format
 - I think I wil not be able to install or deploy the generated jar
in local and remote repos.

Thanks, Thomas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]