Why am I getting a “401 Unauthorized” error in Maven?

前端 未结 21 1785
栀梦
栀梦 2020-11-29 18:06

Why am I getting a \"401 Unauthorized\" error in Maven?

Here\'s the error I\'m getting when calling mvn deploy (full logs at the bottom):

21条回答
  •  执念已碎
    2020-11-29 18:37

    There are two setting.xml in windows.

    • %MAVEN_HOME%\conf\
    • %userprofile%\.m2\

    If %userprofile%\.m2\setting.xml takes effect, maven will not access %MAVEN_HOME%\conf\setting.xml.

提交回复
热议问题