-
Notifications
You must be signed in to change notification settings - Fork 337
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
MAVEN_OPTS not set correctly when relocating Maven #3336
Comments
An example of how to use MAVEN_OPTS: However, Dev Home just sets it to D:\home\userFoo\bin, etc. |
But I also think probably M2_HOME or MAVEN_HOME are the correct variables to be used. |
I don't think so. This should be the location of maven installation directory and it's not on Dev Drive. |
Well, it's the location of the local Maven user directory. Which is usually not the install directory. It's where the settings.xml file would live. Which by default puts the local repository (cache) next to itself. |
So, two options: move all the user settings to the location dev home describes (and use M2_HOME), or alter the settings.xml to change the path of the local repository. I do not think there is an env variable that specifically relocates the local repository, since it's described by the master settings.xml file. |
Yeah, settings.xml describes the default expression for as ${user.home}/.m2/repository So you'd have to actually edit the settings.xml. |
The
The real issue for Dev Drive is to have the Maven repository cache in Dev Drive: this is where the librairies are stored, and that's where you'll gain from the extra I/O from Dev Drive. My recommendation would be to:
|
Dev Home version
0.1501.533.0
Windows build number
No response
Other software
No response
Steps to reproduce the bug
Move m2 directory using Dev Home
Expected result
MAVEN_OPTS should be used to override parameters sent to the JVM. However, it's just set to the new m2 directory path. But the JVM of course does not know how to just handle a path stuck into its args.
Actual result
Doesn't work. JVM fails to launch.
Included System Information
No response
Included Extensions Information
No response
The text was updated successfully, but these errors were encountered: