-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Issue encountered on "cloudbees"
For some reasons, I need to compile my code with JDK 1.5. I configured a Hudson job with this version and I also configured the maven enforcer plugin to check if the proper JDK is used.
When I do a release I get this error, obviously I don't use during release the JDK configured for the job :
FO] [INFO] [enforcer:enforce
{execution: enforce-versions}]
[INFO] [DEBUG] Executing rule: org.apache.maven.plugins.enforcer.RequireJavaVersion
[INFO] [DEBUG] Rule org.apache.maven.plugins.enforcer.RequireJavaVersion is cacheable.
[INFO] [DEBUG] Detected Java String: 1.6.0_20
[INFO] [DEBUG] Normalized Java String: 1.6.0-20
[INFO] [DEBUG] Parsed Version: Major: 1 Minor: 6 Incremental: 0 Build: 20 Qualifier: null
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
[INFO] Detected JDK Version: 1.6.0-20 is not in the allowed range [1.5,1.6).
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [DEBUG] Trace
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
[INFO] Detected JDK Version: 1.6.0-20 is not in the allowed range [1.5,1.6).
- is blocking
-
JENKINS-8092 Maven release plugin cannot find mvn command
- Closed
- is related to
-
JENKINS-6763 Hudson does not set JAVA_HOME for Maven Builds
- Open
-
JENKINS-8092 Maven release plugin cannot find mvn command
- Closed