-
Notifications
You must be signed in to change notification settings - Fork 212
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
The ${MVND_HOME}/mvn/conf/setting.xml is not used #553
Comments
Hi, you can use
|
@Fzoss I guess the issue happens because backslash has a special meaning (escape character) in Java Property files. Could you please try whether the following works for you?
|
I found out that the original problem raised in this issue is that the global settings file is not used at all. The reason is that the |
…when the JVM is started, fixes apache#553
After I replaced the built-in maven |
When I installed it on the windows system and replaced the conf/setting.xml in mvn in the directory with the configuration I used normally, it didn’t seem to take effect, which made me unable to package normally.
After researching, it seems that the configuration can be specified through maven.settings in mvnd.properties. The example given is
~/.m2/settings.xml
.In other words, I can directly specify my configuration file here, so I wrote this:
But it still didn't work when I tested it.
For example, when I compile under D:/root, mvnd tells me that the directory of setting.xml is:
After flipping through, I found this:
#383
Thanks to @ppalaga for providing an example: /path/to/settings.xml
It made me realize that it may be because the directory symbol "\" under windows is considered to be an escape character
I tried to modify it
everything is normal
I recommend using File.separator to determine the file symbol of the current system and replace the configuration
The text was updated successfully, but these errors were encountered: