使用nexus搭建的私仓,将jar上传到3rdParty时报错,如何解决?

mvndeploy:deploy-file-DgroupId=chinapay-DartifactId=chinapayfilesecure-Dversion=1.0-Dpackaging=jar-Dfile=E:\repo\repository1\chinapay\chinapayfilesecure\1.0\chinapayfilesecure-1.0.jar-Durl=http://localhost:8081/repository/3rdParty/-DrepositoryId=3rdParty
E:\repo\repository1\chinapay\chinapaysecure\1.0>mvndeploy:deploy-file-DgroupId=chinapay-DartifactId=chinapayfilesecure-Dversion=1.0-Dpackaging=jar-Dfile=E:\repo\repository1\chinapay\chinapayfilesecure\1.0\chinapayfilesecure-1.0.jar-Durl=http://localhost:8081/repository/3rdParty/-DrepositoryId=3rdParty
[INFO]Scanningforprojects...
[INFO]
[INFO]------------------------------------------------------------------------
[INFO]BuildingMavenStubProject(NoPOM)1
[INFO]------------------------------------------------------------------------
[INFO]
[INFO]---maven-deploy-plugin:2.7:deploy-file(default-cli)@standalone-pom---
Uploading:http://localhost:8081/repository/3rdParty/chinapay/chinapayfilesecure/1.0/chinapayfilesecure-1.0.jar
Uploading:http://localhost:8081/repository/3rdParty/chinapay/chinapayfilesecure/1.0/chinapayfilesecure-1.0.pom
[INFO]------------------------------------------------------------------------
[INFO]BUILDFAILURE
[INFO]------------------------------------------------------------------------
[INFO]Totaltime:0.685s
[INFO]Finishedat:2017-07-17T17:42:30+08:00
[INFO]FinalMemory:9M/155M
[INFO]------------------------------------------------------------------------
[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file(default-cli)onprojectstandalone-pom:Failedtodeployartifacts:Couldnottransferartifactchinapay:chinapayfilesecure:jar:1.0from/to3rdParty(http://localhost:8081/repository/3rdParty/):Failedtotransferfile:http://localhost:8081/repository/3rdParty/chinapay/chinapayfilesecure/1.0/chinapayfilesecure-1.0.jar.Returncodeis:401,ReasonPhrase:Unauthorized.->[Help1]
[ERROR]
[ERROR]Toseethefullstacktraceoftheerrors,re-runMavenwiththe-eswitch.
[ERROR]Re-runMavenusingthe-Xswitchtoenablefulldebuglogging.
[ERROR]
[ERROR]Formoreinformationabouttheerrorsandpossiblesolutions,pleasereadthefollowingarticles:
[ERROR][Help1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
E:\repo\repository1\chinapay\chinapaysecure\1.0>
烙印99
浏览 928回答 2
2回答

慕无忌1623718

已经解决,只要在maven的配置文件里面添加这一行就可以了。3rdPartyadminadmin123
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript