Maven命令来确定Maven正在使用哪个settings.xml文件 [英] Maven command to determine which settings.xml file Maven is using

查看:678
本文介绍了Maven命令来确定Maven正在使用哪个settings.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用maven命令行来确定Maven正在选择哪个settings.xml文件?

How do I use maven command line to determine which settings.xml file Maven is picking up?

推荐答案

-X选项(调试)并检查输出的开始。应该有这样的:

Start maven with -X option (debug) and examine the beginning of the output. There should be something like this:

...
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from c:\....\apache-maven-3.0.3\conf\settings.xml
[DEBUG] Reading user settings from c:\....\.m2\settings.xml
[DEBUG] Using local repository at C:\....\repository
...

(原始目录名称由我移除)

(Original directory names are removed by me)

这篇关于Maven命令来确定Maven正在使用哪个settings.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆