I have my project set to use JDK 1.4, but when building with maven, it uses the default (as in the JDK used to run IntelliJ itself)
to confirm, I used the maven-enforcer-plugin to restrict JDK to be 1.4.x only, and this is what I get:
[WARNING] Rule 0: org.apache.maven.plugin.enforcer.RequireJavaVersion failed with message: Detected JDK Version: 1.5.0-13 is not in the allowed range [1.4,1.5).
Without the validation, it compiles using 1.5.0-13.
Description
I have my project set to use JDK 1.4, but when building with maven, it uses the default (as in the JDK used to run IntelliJ itself)
to confirm, I used the maven-enforcer-plugin to restrict JDK to be 1.4.x only, and this is what I get:
[WARNING] Rule 0: org.apache.maven.plugin.enforcer.RequireJavaVersion failed with message: Detected JDK Version: 1.5.0-13 is not in the allowed range [1.4,1.5).
Without the validation, it compiles using 1.5.0-13.
Anton Makeev - 30 Jan 08 17:52 You may use, as a temporary solution, the external runner and provide a corresponding JAVA_HOME value.
We'll add the support for a custom jdk later.
We'll add the support for a custom jdk later.