Details
Description
The impact is that release:prepare tries to use $HOME/.m2/settings.xml instead of the one supplied by --settings cmdline option, which leads to unexpected behavior
Of course if it does not exist, the inhouse repository is avoided and release often fails due to a ResourceDoesNotExistException when an inhouse artifact is requested by the pom.
To reproduce this problem, just rename your ~/.m2/settings.xml to ~/.m2/s.xml and run this:
mvn --settings=$HOME/.m2/s.xml release:prepare .....
Issue Links
- is duplicated by
-
MRELEASE-521
release:perform does not take the settings specified by the -s option
-
- is related to
-
MNG-5224
REGRESSION: Injected Settings in a Mojo are missing the profiles from settings.xml
-
It is not possible to get the location of the settings.xml from within a Maven plugin.
Embedding maven may result in there actually being no settings.xml at all, with all the required information being provided by the embedder.
If somebody wants to take a stab at a patch for this, you would do something like: