您的位置:首页 > 其它

Maven指定文件上传远程仓库【非中央仓库】

2015-07-07 14:27 204 查看
mvn deploy:deploy-file -DgroupId=xxxx -DartifactId=xxxx -Dversion=1.0.0 -Dpackaging=jar -Dfile=xxxx.jar -Durl=http://xxxx -DrepositoryId=oss

配置maven:

<server>

<id>oss</id>

<username>root</username>

<password>root</password>

</server>

处理错误:HTTP method PUT is not supported by this URL

repo名字错误

mvn deploy:deploy-file -DgroupId=cn.richinfo.android.widget -DartifactId=richinfowidget -Dversion=1.0.0 -Dpackaging=aar -Dfile=F:\AndroidStudio\workbanch\helloworld\richinfowidget\build\outputs\aar\richinfowidget-release.aar -Durl=http://192.168.20.59:8081/nexus/content/groups/public/
-DrepositoryId=richinfo

注:还是用界面上传吧!


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: