其他分享
首页 > 其他分享> > Maven deploy报错:Failed to deploy artifacts: Could not transfer artifact from/to snapshots 401 Unau

Maven deploy报错:Failed to deploy artifacts: Could not transfer artifact from/to snapshots 401 Unau

作者:互联网

Maven deploy报错:

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:deploy (default-deploy) on project : Failed to deploy artifacts: Could not transfer artifact   from/to snapshots  401 Unauthorized

错误原因:

401 Unauthorized,一般是身份验证凭证没通过。

解决方法:

查看maven的conf目录下的 settings.xml 配置,检查账号密码是否正确。

  <servers>
    <server>
      <username>账号</username>
      <password>密码</password>
      <id>central</id>
    </server>
    <server>
      <username>账号</username>
      <password>密码</password>
      <id>snapshots</id>
    </server>
  </servers>

标签:Unauthorized,deploy,snapshots,maven,Failed,报错,401
来源: https://www.cnblogs.com/expiator/p/16527681.html