did you do a "mvn clean" after you made the change to the pom?
On 6 July 2011 12:46, Yuvaraj Vanarase <[email protected]>wrote:
> Yeah.
>
>
>
> I tried using:
>
> <resources>
>
> <resource>
>
> <directory>src/main/resources</directory>
>
> <filtering>false</filtering>
>
> <excludes>
>
> <exclude>**/*.*</exclude>
>
> </excludes>
>
> </resource>
>
> Under build tag. It does avoid copying files into target/classes directory,
> however built War file does have them under WEB-INF/classes.
>
>
>
> Using:
>
>
>
> <webResources>
>
> <resource>
>
> <directory>${basedir}/src/main/resources</directory>
>
> <excludes>
>
> <exclude>**/*.*</exclude>
>
> </excludes>
>
> </resource>
>
> </webResources>
>
>
>
> Inside War plug-in configuration doesn't help either.
>
>
>
> Any suggestions?
>
>
>
>
>
> Regards,
>
> Yuvaraj
>
>
>
> Yuvaraj Vanarase,
>
> Lead Technology - Software
>
> Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 |
> http://www.synechron.com
>
> SYNECHRON -
>
> - Top 10 Best IT Employers for 4 consecutive years (link).
>
> - Celebrating 10 Years!
>
>
>
> -----Original Message-----
> From: Antonio Petrelli [mailto:[email protected]]
> Sent: Wednesday, July 06, 2011 3:26 PM
> To: Maven Users List
> Subject: Re: Skip Resources for War
>
>
>
> 2011/7/6 Yuvaraj Vanarase <[email protected]>
>
>
>
> > I have few XML files under src/main/resources. The project packging is
> War.
>
> > I would like to avoid these files getting into War file. I could exclude
>
> > them from being part of target/classes by using resources & exclude
> inside
>
> > build tag.
>
> > Any clue how to skip them for war?
>
> >
>
>
>
> Resources in src/main/resources will be put in WEB-INF/classes and they can
>
> be excluded like you did for Jar-packaged projects.
>
> Did you try it? Didn't it work?
>
>
>
> Antonio
>