This should do the trick: http://www.mailinglistarchive.com/[email protected]/msg21096.html
In other words, you need to supply the Maven compiler plugin with the appropriate configuration. The build/resources node you configured corresponds to resources per se, i.e. not to Java sources. Jon > -----Original Message----- > From: Gadbury [mailto:[email protected]] > Sent: 22 July 2009 11:46 > To: [email protected] > Subject: Excluding Build Resources Within POM File > > > Hi all, > > I am temporarily trying to exclude various packages and > source files from my web-app's build process. > > I first tried in Eclipse: right click package/file > build > path > exclude. > That doesn't work. > > I then tried adding build resources excludes to my POM. > Unfortunately, despite trying a combination of directories > and exclude patterns, my build still attempts to compile all > sources. Shouldn't the following example should exclude all > files under src? > > <project> > <build> > <finalName>myApp</finalName> > <resources> > <resource> > <directory>src</directory> > <excludes> > <exclude>**/*</exclude> > </excludes> > </resource> > </resources> > </build> > </project> > > I have spent some time trying to figure out what I may be > doing wrong, along with a fair bit of experimentation. > Please could someone help put me out of my misery! :D > -- > View this message in context: > http://www.nabble.com/Excluding-Build-Resources-Within-POM-Fil e-tp24604045p24604045.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]
