-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different java versions for mvnd and maven #512
Comments
You can use JDK11 runtime for all and set the |
mvnd --release 7 -f pom.xml clean install -U -Dmaven.test.failure.ignore=true dependency:copy-dependencies -Dparallel=all -DperCoreThreadCount=true -DthreadCount=2 -DforkCount=2C Unable to parse command line options: Unrecognized option: --release |
This means you are running with JDK8 or less...that does not work. The `--release´ is available from JDK9+ As I said run your build with JDK11 and use the --release option.. Is there a reason why you are using copy-dependencies etc. ? Why ignoring test failures? And fork count? |
Reopen if needed. |
Well, I am using Semeru distribuition of Adoptium OpenJDK 11 and is receiving this message. Maybe I need to use a distribution with Hotspot JVM instead OpenJ9? |
The |
Thank you for your help. I put -Dmaven.compiler.release=7 and works. |
I am trying to compile a Java 7 source with mvnd but it's not supported. If there is any way to set different JAVA_HOME for mvnd and internal maven I can run mvnd with Java 11 for example and maven with Java 7. Is it possible?
I tried set java.home with Java 11 on mvnd.properties and JAVA_HOME with Java 7 but doesn't work.
The text was updated successfully, but these errors were encountered: