I\'ve been trying to get this to work for a while now but no luck yet.
I want to run with JAVA_HOME pointing to JDK7 but I want to compile a project for
JAVA_HOME
You can use the bootclasspath configuration option on the maven-compiler-plugin if needed:
xxxxxxxxx
You can read more about it here. See the note under the example.