good advice maxime..i should have thought of that!
if you have a rock solid jar (any one of the apache jars such as 
commons-logging) that you want to re-package as your own e.g.
org.apache.commons.logging becomes
org.apache.mark.commons.logging

then you'll want to implementing  the shade:shade goals thru maven-shade-plugin
http://maven.apache.org/plugins/maven-shade-plugin/

the last reply to this thread involved a requirement to activate a profile in 
order to execute a plugin
based on properties file modification-date-time
which *could* be accomplished with the selector task (if you're willing to 
brave the clumsiness of passing control) to 
maven-antrun-plugin build.xml (where default target uses selector task)

http://ant.apache.org/manual/Types/selectors.html#dateselect

any thoughts?
Martin
______________________________________________ 
Note de déni et de confidentialité
 
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 19 May 2011 06:45:10 -0700
> From: [email protected]
> To: [email protected]
> Subject: Re: Assembly Advice
> 
> I started off using shade, which did seem to work, but the resulting 
> uber.jar had some problems with manifests. I did not have time to notice 
> if it had the same problem as I am having with assembly.
> 
> Cheers, Eric
> 
> On 2011-05-19 2:35 AM, Maxime Gréau wrote:
> > Hi,
> >
> > Did you try with the maven-shade-plugin [1] instead of maven-assembly-plugin
> > ?
> >
> > [1] http://maven.apache.org/plugins/maven-shade-plugin/
> >
> > Regards.
> >
> > Maxime Gréau.
> > mgreau.com
> > *Auteur du livre **Apache Maven - Maîtriser l'infrastructure d'un projet
> > Java EE*<http://goo.gl/ivCZW>
> >
> >
> >
> > 2011/5/18 Eric Kolotyluk<[email protected]>
> >
> >> My current structure is
> >>
> >>   +-- pom.xml
> >>   !
> >>   +--- mod1
> >>   +--- mod2 needs an assembly and depends on mod1&   mod3
> >>   +--- mod3
> >>   +--- mod4 needs an assembly and depends on mod1&   mod3
> >>
> >> Are you saying I need to define something like
> >>
> >>
> >>   +-- pom.xml
> >>   !
> >>   +--- mod1
> >>   +--- mod2
> >>   +--- mod3
> >>   +--- mod4
> >>   +--- mod-ass2
> >>
> >>      +--- pom.xml (dependencies to mod1, mod2 and mod3)
> >>   +--- mod-ass4
> >>      +--- pom.xml (dependencies to mod1, mod3 and mod4)
> >>
> >> How will that ensure that mod1, mod2, mod3, mod4 will pass through the
> >> install phase, before mod-ass2 and mod-ass4 pass through the package 
> >> phase.?
> >>
> >> Cheers, Eric
> >>
> >>
> >>
> >>
> >>
> >> On 2011-05-18 7:42 AM, Karl Heinz Marbaise wrote:
> >>
> >>> Hi,
> >>>
> >>> you have to define dependencies in your assembly module to the other
> >>> modules
> >>> ...than maven will handle the correct order ....
> >>>
> >>> I assume you have a structure like this.
> >>>
> >>>   +-- pom.xml
> >>>   !
> >>>   +--- mod1
> >>>   +--- mod2
> >>>   +--- mod3
> >>>   +--- mod-ass
> >>>        +--- pom.xml (dependencies to mod1, mod2 and mod3)
> >>>
> >>> Kind regards
> >>> Karl Heinz Marbaise
> >>>
> >>> -----
> >>> Kind regards
> >>> Karl Heinz Marbaise
> >>> ----
> >>> http://www.soebes.de
> >>> http://www.skmwiki.de
> >>> http://supose.org/wiki/supose
> >>> --
> >>> View this message in context:
> >>> http://maven.40175.n5.nabble.com/Assembly-Advice-tp4406394p4406656.html
> >>> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [email protected]
> >>> For additional commands, e-mail: [email protected]
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          

Reply via email to