开发者社区> 问答> 正文

Nexus 3.0.1 如何和在页面上传第三方jar,另外用命令行执行报错?????报错

最近安装了Nexus 3.0.1,现在有第三方的jar需要上传,记得以前2.0都是可以直接通过页面加的,但是3.0却找不到在哪添加,求教了。。。。


另外我用命令行却一直报错,搞不懂,maven刚开始搞,有点菜鸟。。。

命令如下:

 mvn deploy:deploy-file -DgroupId=com.baidu.yun -DartifactId=bccs -Dversion=3.0.1 -Dpackaging=jar -Dfile=D:\jar\bccs-api-3.0.1.jar -Durl=http://127.0.0.1:8081/repository/maven-central -DrepositoryId=maven-central


报错信息如下:

 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts:
 Could not transfer artifact com.baidu.yun:bccs🏺3.0.1 from/to maven-central
(http://127.0.0.1:8081/repository/maven-central): Software caused connection abo
rt: socket write error -> [Help 1]


[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception



请各位老司机指教


谢谢


展开
收起
爱吃鱼的程序员 2020-06-09 10:16:41 674 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    我的setting.xml 配置如下:


    <servers>
      <server>
       <id>nexus</id>
       <username>admin</username>
       <password>admin123</password>
      </server>
    <server> 
    <id>releases</id> 
    <username>admin</username> 
    <password>admin123</password> 
     </server> 
    <server> 
     <id>snapshots</id> 
     <username>admin</username> 
     <password>admin123</password> 
     </server> 


     </servers>

    什么情况,界面上显示不了,怎么加的最后

    引用来自“wangjia2016”的评论

    什么情况,界面上显示不了,怎么加的最后

    https://my.oschina.net/skyzwg/blog/846195 刚总结的,还没有解决可以参考一下。

    http://127.0.0.1:8081/repository/maven-central):Softwarecausedconnectionabo
    rt:socketwriteerror

    http://127.0.0.1:8081/repository/maven-central连接不到这个地址
    install是安装到本地,并非上传到服务器,所以可以

    2020-06-09 10:17:00
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
附件下载测试 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载