使用idea的maven进行deploy操作失败,报错:

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project proengine-db-sdk: Failed to deploy artifacts: Could not transfer artifact com:-proengine-db-sdk:jar:1.1.9-20191115.105829-3 from/to snapshots (http://XXX:8081/nexus/content/repositories/snapshots): Failed to transfer file http://nexus.XXX.com:8081/nexus/content/repositories/snapshots/com/-proengine-db-sdk/1.1.9-SNAPSHOT/proengine-db-sdk-1.1.9-20191115.105829-3.jar with status code 401

 

 

 

 

 

解决方法:

直接使用mvn命令进行打包,就可以打包成功

mvn clean package deploy

 

 

 

 

查看原文