开发者

Maven Proxy settings.xml ignored

Maybe someone can help me with the following Problem:

I have declared a proxy in M as described at maven - Configuring a proxy.

For some reason the proxy is ignored, although the proxy itself works correctly with maven when setting the proxy via command line.

W开发者_开发知识库hen calling the maven goal like this, it works:

mvn -DproxySet=true -DproxyHost=myproxy.com -DproxyPort=3128 eclipse:eclipse

Any suggestions for this problem?


When settings.xml is ignored, I tend to check first if the environment variable M2_HOME:

  • exists in the current shell session
  • refers to the parent directory of said settings.xml

mglauche comments:

M2_HOME should specify the system settings.xml to use.
You still have your user settings in ${home}/.m2/settings.xml, which should overwrite anything in the system settings.


For Maven Eclipse, as mglauche mentions in the comments, specify the full path in the maven preferences:

Maven Proxy settings.xml ignored

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜