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

前端 未结 21 1770
栀梦
栀梦 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:26

    We have had this issue quite recently and found out it was to do with the version of Maven we were using. We were using 3.1.0 and could not upload to nexus, we kept getting 401's, we reverted back to 3.0.3 and the issue went away.

    Easiest way to confirm is to work through the maven versions and run "mvn deploy" on your project.

    Further details can be found here: https://issues.apache.org/jira/browse/WAGON-421

提交回复
热议问题