I am using maven 3.2.5 to create my project, this version of maven is compatible with java 6.
I want to create a project that will use java 5 with the maven-enforcer plugin.
If I installed JAVA_HOME in the java 5 directory, I cannot start maven, and if I installed JAVA_HOME in the java 6 directory, the plugin forces a complaint about the java version.
Is there a way to tell maven to use a different version of java from the one used to start maven?
source
share