使用Maven調試選項,即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
...
在此輸出,您可以看到的settings.xml從/home/myhome/.m2/settings.xml
加載。
Duplicate for http://stackoverflow.com/questions/1261215/which-maven-settings-xml-files – nwinkler 2012-04-03 07:27:44
非常感謝你 – RAY 2012-04-03 07:29:17
其實,另一個問題沒有我需要的答案。 nico_ekito提供了我需要的答案。 – RAY 2012-04-03 07:38:09