Good to see it can help someone !
Please notice this is a maven2 hack (compile test prior to test
compilation to avoid compilation errors...) that may be solved by having
official support for a testCompile != compile configuration.
Could you say what idea did this gives you ? Maybe it will gives me
other ideas ;-)
Nico.
LECAN Damien a écrit :
Waoh, good job. Your special configuration gave me a lot of ideas (Especially
<dependencies> section in plugin configuration)
Thanks
Damien Lecan
-------- Message d'origine--------
De: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Date: jeu. 07/09/2006 17:33
À: Maven Users List
Objet : [solved] product codes at java 1.4, test sources at java 1.5
Here is my POM :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.3</source>
<target>1.3</target>
<compilerArguments>
<bootclasspath>
${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar
</bootclasspath>
</compilerArguments>
</configuration>
<executions>
<execution>
<id>compile-tests</id>
<phase>process-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.5</source>
<target>1.5</target>
<compilerArguments>
<bootclasspath>
${java.home}/lib/rt.jar
</bootclasspath>
</compilerArguments>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.3.1_08</version>
</dependency>
</dependencies>
</plugin>
Nico.
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]