为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

烙印99 2019-05-25 15:18:56
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=3rdPartyE:\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.jarUploading: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/MojoExecutionExceptionE:\repo\repository1\chinapay\chinapaysecure\1.0>
查看完整描述

2 回答

?
慕无忌1623718

TA贡献1744条经验 获得超4个赞

已经解决,只要在maven的配置文件里面添加这一行就可以了。
3rdParty
admin
admin123
                            
查看完整回答
反对 回复 2019-05-25
  • 2 回答
  • 0 关注
  • 927 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信