Maven Compiler Plugin
Compiling With a Different JDK
- http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html
- http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions
- http://www.nabble.com/Using-alternative-JDK-t3299539s177.html
- Maven Surefire pom.xml has an example of using JDK 1.3 in a profile
Separate configuration for test-compile and compile phases
With Maven 2.0.x it is not possible to configure the compiler plugin separately for the test-compile and compile phases. (Confirmed with 2.0.8)
This is expected to change with Maven 2.1.

Comments (1)
Mar 13, 2007
Henri Yandell says:
The bootclasspath approach is pretty crappy as it only works on particular JVMs....The bootclasspath approach is pretty crappy as it only works on particular JVMs. You lose the ability to build on OS X for one.