> -----Original Message----- > From: Laurent Berteau [mailto:[EMAIL PROTECTED] > Sent: Friday, January 06, 2006 9:33 AM > To: Maven Users List > Subject: Re: RE : [m2] war plugin and resources filtering > > Hi, > > Those solutions looks OK for any resources _except_ for web.xml > Indeed I seem to me that in the package phase the original web.xml file > is copied in the target directory, overiding the one that has been > previously filtered. > > Anyway this leads me to wonder if I am going in the right direction (as > I am a Maven newbie). May be the customization of the web app params > depending on the target physical node it will be deployed, should not be > done in the war build lifecycle but in an assembly project. > Do you have some good practice advices about this ? > > Thanks for your help, > > -- > Laurent > > Olivier Lamy wrote: > > Hi, > > To add resources (struts, tiles and others). > > Two solutions : > > - made your own war plugin (look at a solution proposed > > http://jira.codehaus.org/browse/MNG-1683) > > - using something as : > > <build> > > <directory>build</directory> > > <outputDirectory>build/classes</outputDirectory> > > > > <resources> > > <resource> > > <targetPath>path to ${webappDirectory}/WEB-INF</targetPath>
Try: <targetPath>../contentsOfYourFinalName</targetPath> ex: <targetPath>../${artifactId}-${version}</targetPath> > > <directory>src/main/resources/struts</directory> > > <includes> > > <include>**/*.xml</include> > > </includes> > > <filtering>true</filtering> > > </resource> > > best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]