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

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

    Had similar issue. Had to pin the maven deploy plugin to specific version in pom.xml:

    
        org.apache.maven.plugins
        maven-deploy-plugin
         2.8.2
    
    

    This version is what broke my builds:

    [INFO] --- maven-deploy-plugin:3.0.0-M1:deploy (default-cli) @ dbl ---
    

提交回复
热议问题