-
Notifications
You must be signed in to change notification settings - Fork 77
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
Invoked maven should be executed in same java environment as rascal itself #1770
Comments
Sometimes rascal is running inside of a jdk that is not the same as JAVA_HOME, or JAVA_HOME is note defined Fixes #1770
will mvn always use JAVA_HOME or will we use the mvn in the PATH with a given JAVA_HOME? |
is this the issue where clair would not work with a difference JRE? |
and looking at the code, java on your path is not enough, it should have a valid
I don't know that specific issue. But I think @djswagerman could tell you if this was the same problem. |
We call maven from within rascal, this assumes first that maven is installed, and that java is installed.
But if a user installed maven, and has a JAVA_HOME pointing to java 8, but starting rascal with a different JDK (either via java_home, or via path, an explicit path, or vscode auto install) the invoked mvn is running in a different version of java.
In some setups (like for example the vscode auto install) this can cause problems.
We should, when invoking mvn, copy our own
java.home
property onto the environement of the mvn call. Note #1661 also solves this issue, since it doesn't fork to maven anymore.thanks @djswagerman for taking the time to test it out and report the issue.
The text was updated successfully, but these errors were encountered: