Hi Mike, Try and add the lines below to your pom.xml.
The <sourceDirectory> & <testSourceDirectory> solve your 1) problem. The <resources> stuff solve half your 2) problem. For test resources, there is a related tag <testResources>, but oddly enough I didn't get to make it work. See also these pages : http://maven.apache.org/maven2/maven-model/maven.html http://maven.apache.org/using/resources.html Regards, Yann <build> <sourceDirectory>src/java</sourceDirectory> <testSourceDirectory>src/test</testSourceDirectory> <resources> <resource> <targetPath>com/mycompany/app</targetPath> <directory>src/java/com/mycompany/app</directory> <includes> <include>**/*.properties</include> </includes> </resource> <resource> <directory>src/java</directory> <includes> <include>*.xml</include> </includes> </resource> </resources> </build> ---------- Mail d'origine ----------- De : "Mike Perham" [EMAIL PROTECTED] A : [email protected] Cc : Date : Fri, 24 Jun 2005 10:10:12 -0500 Objet : [M2] plugin configuration -I just downloaded and started using the new Maven 2.0a3 release. It is -REALLY nice so far but I do have a few simple questions: - -1) How do I override the default source directory for the two compile -goals? Our projects use src/java and src/test for the compile and -testCompile sources respectively. - -2) We put all our necessary resources right along with the code. How do -I tell the two resource copy goals to copy anything non-java from the -source directory instead of using a separate resource directory? - -mike - ---------------------------------------------------------------------- -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]
