How do I find out which settings.xml file maven is using

前端 未结 1 709
伪装坚强ぢ
伪装坚强ぢ 2020-12-22 22:34

I recently changed my password and have to change my maven settings.xml file to reflect that. However, no matter what I do in the settings.xml file, the changed password jus

相关标签:
1条回答
  • 2020-12-22 22:51

    Use the Maven debug option, ie mvn -X :

    Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
    Maven home: /usr/java/apache-maven-3.0.3
    Java version: 1.6.0_12, vendor: Sun Microsystems Inc.
    Java home: /usr/java/jdk1.6.0_12/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux", version: "2.6.32-32-generic", arch: "i386", family: "unix"
    [INFO] Error stacktraces are turned on.
    [DEBUG] Reading global settings from /usr/java/apache-maven-3.0.3/conf/settings.xml
    [DEBUG] Reading user settings from /home/myhome/.m2/settings.xml
    ...
    

    In this output, you can see that the settings.xml is loaded from /home/myhome/.m2/settings.xml.

    0 讨论(0)
提交回复
热议问题