1

I am using Ubuntu 16.10 and Maven 3.3.9. I've found maven folders in different directories with settings.xml files:

  • ~/.m2/ (I have cp a settings.xml file in this directory)
  • /etc/maven
  • /usr/share/maven/conf

...

What would be the correct place for the settings.xml file and how to find out what file Maven is using?

mvn -X returns No goals have been specified for this build. [...]

mvn <goal> -X does not even display anything about the settings.xml file

3
  • Possible duplicate of stackoverflow.com/questions/9988814/… Commented May 5, 2017 at 11:58
  • what kind of setting do you want to use? Commented May 5, 2017 at 13:09
  • The user settings.xml is located in $HOME/.m2/ which is usually used for configurations like repositories etc. Using /etc/maven or /usr/shared/maven/conf is usually forbidden in usual environments... Commented May 5, 2017 at 19:12

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.