Sorry I guess I wasn't too clear in what I want. I want to compile my tests using java 1.5 but the rest of my sources as 1.4. Why? Because we use TestNG and the Javadoc runner doesn't work yet and we can't update our product to 1.5 yet. I figured if I could just build the tests using 1.5, then we could use the java annotations and everyone would be happy.
-----Original Message----- From: Naess, Ronny [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 2:23 AM To: Maven Users List Subject: SV: Can Testcompile and compile have different target/source configurations? I am not sure if I understand what you want. You have src/main/java vs src/test/java And src/main/resources/ vs src/test/resources Likevise output target/classes (main) vs target/test-classes Is this not what you want? You want to change these to something else? In that case check http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html, http://maven.apache.org/plugins/maven-compiler-plugin/testCompile-mojo.h tml. Change compileSourceRoots and outputDirectory to satisfy your needs. -Ronny -----Opprinnelig melding----- Fra: Brian E. Fox [mailto:[EMAIL PROTECTED] Sendt: 4. oktober 2006 00:36 Til: Maven Users List Emne: Can Testcompile and compile have different target/source configurations? I need to set a different source/target configuration for testcompile and compile. They are separate goals, but it's not apparently possible to set goal specific configuration without another execution. Is there some way to do this? !DSPAM:4522e603144722988016950! --------------------------------------------------------------------- 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]