Hi,
I'm trying to get a simple Maven 3 build running under windows. My build works fine running from the console, but when I let Go build it, it uses the wrong Java version.
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.7.0-9 is not in the allowed range [1.8,).
I have set my JAVA_HOME set accordingly, in both, user and system properties. I have controlled the PATH many times and can't find any reference to a JDK 1.7. I also deleted the preinstalled Java from c:\windows.
Interestinlgy, Go ships with a JRE in exactly that version. I don't think Go would try to build with it's own JRE, but will always use what I configured for Maven.
Am I missing something or am I facing a bug in Go or the RequireJavaVersion plugin?
If anybody had similar issues, I'd be glad to hear about it.
Regards
Soren