Hi Olivier, I don't have the answer to all your questions but I believe I can help with questions 1 & 2:
1 - Use the "provided" scope for all your war dependencies, see http://maven.apache.org/ref/current/maven-model/maven.html#class_dependency and http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope 3 - You can use the "inherited" flag on your assembly execution, see http://maven.apache.org/ref/current/maven-model/maven.html#class_execution Hope this helps, SaM On Mon, Sep 22, 2008 at 2:23 PM, Olivier Gies <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have a multi-module project as follows: > > my_project > | > +- myapp1 (war) > | > +- myapp2 (war) > | > +- myutils (jar) > > I want to assemble "my_project" as follows: > > my_project.zip > | > +- applications/ > | | > | +- myapp1.war > | | > | +- myapp2.war > | > +- lib/ > | > +- myutils.jar > | > +- *.jar (JAR dependencies of myapp1, myapp2 and myutils) > > > So far, I could successfully put the WARs in applications/ and the JAR in > lib/ using <moduleSets>, but there are still some side-effects I wish to > prevent: > > 1) How to prevent WAR plugin from putting each war's dependent JARs into the > myappX.war:WEB-INF/lib ? > 2) How to put those JARs into the parent's (my_project) target assembly lib/ > directory instead ? > 3) How to limit execution of assembly plugin to my_project ? i.e. prevent > its execution for each individual module > > Thanks for your insights. > > -- > > *Olivier Gies* > > *Delivery Manager > Customs & Tax Software Engineering Center > Bull, Architect of an Open World ^TM > Phone: +86 (10) 65978001 - Ext 555 * > > *www.bull.com <http://www.bull.com/>* > > *This e-mail contains material that is confidential for the sole use of the > intended recipient. Any review, reliance or distribution by others or > forwarding without express permission is strictly prohibited. If you are not > the intended recipient, please contact the sender and delete all copies.* > > > --------------------------------------------------------------------- > 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]
