最近安装了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
请各位老司机指教
谢谢
我的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>
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是安装到本地,并非上传到服务器,所以可以
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。