Hi _o/
I have a little project that requires a JDK 1.6 (it uses some 1.6 specific
APIs).
I have both Java 1.5 and 1.6 installed on my system to do some tests.
Using the following, I can build the artifact.
------------------------------8<------------------------------
<project>
...
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerVersion>1.6</compilerVersion>
<fork>true</fork>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
------------------------------8<------------------------------
However, the tests fail to execute with a "Bad version number in .class file".
OK, the surefire plugin must be using the 1.5 JRE to execute the tests and thus
fails.
There must be a way to tell it to use a 1.6 JRE and that would solve my problem.
But I find it quite a bad precatice to have to state in two locations that I
need a 1.6 jre.
Is there a way to tell maven to use a JRE 1.6 for all Java-related things in a
single location ?
--
Cordialement,
Olivier SERVE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]