Maven Proxy settings.xml ignored

前端 未结 1 1280
失恋的感觉
失恋的感觉 2021-02-07 08:35

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 th

1条回答
  •  梦如初夏
    2021-02-07 08:52

    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:

    eclipse maven preferences

    0 讨论(0)
提交回复
热议问题