All resources should be under src/main/resources. Well, however for any odd case one can use resources plug-in to explicitly copy/exclude resources OR for War packaged project webresources configuration should also do the same.
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html 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: Benson Margulies [mailto:[email protected]] Sent: Thursday, August 25, 2011 5:09 PM To: Maven Users List Subject: Re: XML files are not getting included while compiling the source On Thu, Aug 25, 2011 at 7:37 AM, anamika gupta <[email protected]> wrote: > I have many XML files in src/main/java directory and its sub directory. When > I > run "mvn compile", these XML files will not be copied to the > target/classes XML files belong in src/main/resources, not src/main/java. > > -- > View this message in context: > http://maven.40175.n5.nabble.com/XML-files-are-not-getting-included-while-compiling-the-source-tp4734115p4734115.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]
