Take a look at the uberjar plugin.

- Brett

> -----Original Message-----
> From: Brent Hale [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 26 September 2003 1:53 AM
> To: Maven Users List
> Subject: Re: Jar which includes other
> 
> 
> I don't  if this is the BEST way, but here's something I do 
> that works.
> 
>     <postGoal name="jar:jar">
>         <attainGoal name="mergejars"/>
>     </postGoal>
> 
>     <goal
>         name="mergejars"
>         description="Merges the subproject's jar into this main one.">
>        
>         <!-- Use Ant's zip feature to merge the created jar with the 
> schema jar -->
>         <ant:zip destfile="${maven.build.dir}/combined.jar" 
> duplicate="preserve">
>             <zipgroupfileset dir="${maven.build.dir}" 
> includes="${maven.final.name}.jar"/>
>             <zipgroupfileset dir="qbxmlschema/target" 
> includes="*.jar"/>
>         </ant:zip>
>        
>         <!-- Rename the combined.jar as the real one. -->
>         <move file="${maven.build.dir}/combined.jar" 
> tofile="${maven.build.dir}/${maven.final.name}.jar"/>
>     </goal>
> 
> 
> This shows how to merge two jars into one. 
> 
> Brent
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >I don't know if it is possible :
> >
> >I have some sub project which produce jars. This jars are dependant 
> >each
> >other. 
> >I want to define an other sub project who include the other 
> projects jars 
> >to build one unique jar.
> >
> >Nicolas
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >  
> >
> 
> -- 
> Brent Hale
> Fishbowl Inventory
> www.fishbowlinventory.com
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to