How do I use maven command line to determine which settings.xml file Maven is picking up?
mvn help:effective-settings shows the effective settings of the current environment including your location of settings. xml file. Additionally showPasswords=true will help you see the passwords resolved as well if you are using environment variables.
Open your Eclipse and go to Window -> Preferences. Click on the Browse button of User Settings , and select the settings. xml.
A Maven settings. xml file defines values that configure Maven execution in various ways. Most commonly, it is used to define a local repository location, alternate remote repository servers, and authentication information for private repositories.
Start maven with -X option (debug) and examine the beginning of the output. There should be something like this:
... [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from c:\....\apache-maven-3.0.3\conf\settings.xml [DEBUG] Reading user settings from c:\....\.m2\settings.xml [DEBUG] Using local repository at C:\....\repository ...
(Original directory names are removed by me)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With