Maven命令行窗口指定settings.xml

maven命令行窗口指定特定settings.xml

在命令行界面指定settings.xml,命令如下:

mvn install --settings c:usersettings.xml 

例如:

mvn clean package --settings F:Mavensettings.xml -Dmaven.test.skip=true

参考资料:

http://stackoverflow.com/questions/1261215/maven-command-to-determine-which-settings-xml-file-maven-is-using
http://stackoverflow.com/questions/25277866/maven-command-line-how-to-point-to-a-specific-settings-xml-for-a-single-command

原文地址:https://www.cnblogs.com/zhangqigao/p/6382986.html