Maven忽略settings.xml文件 [英] Maven ignores settings.xml file

查看:147
本文介绍了Maven忽略settings.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在settigns.xml文件中添加了代理配置,但是Maven不使用它,我通过使settings.xml文件无效来确认了这一点.我运行了maven install命令来更新设置和全局设置,以指向正确的文件,仍然没有运气.我正在使用maven3.0.4.

I have added proxy configuration in settigns.xml file, but it is not used by Maven, i confirmed this by making the settings.xml file invalid. I ran the maven install command to update settings and global-settings to point to the correct file, still no luck. I am using maven3.0.4.

推荐答案

尝试使用-X选项运行Maven.它应该作为正在使用哪个设置文件的调试输出的一部分进行打印.

Try running Maven with the -X option. It should print as part of the debug output which settings file is being used.

由于您已经尝试使用无效文件,因此我敢打赌您的文件位置出了问题.

Since you already tried it with an invalid file, I bet that something is wrong with the location of your file.

这篇关于Maven忽略settings.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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