Why maven settings.xml file is not there?

后端 未结 7 915
感动是毒
感动是毒 2020-12-13 08:49

I installed maven plugin for eclipse and was able to use it only in eclipse. I want to be able to run maven commands from terminal so installed maven as explained in the bel

7条回答
  •  不思量自难忘°
    2020-12-13 09:17

    As per the maven's documentation, there are two possible settings.xml locations

    One is the global maven's repo (Your initial download and subsequent unzipped files from apache maven) $M2_HOME/conf/settings.xml

    And the second is the user created one (Your local copy) ${user.home}/.m2/settings.xml

    The local copy takes precedence over the global copy in terms of settings information. But it is said that they both get merged during "runtime". If you need to have your local copy of the settings.xml, simply copy from the global copy and paste in your .m2 folder and adjust the details as needed

提交回复
热议问题