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
注:还是用界面上传吧!
配置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
注:还是用界面上传吧!
相关文章推荐
- windows curl ssl版本编译
- java.sql.SQLException: 关闭的连接 解决办法
- EasyDarwin开源平台直播架构
- Powerful Regex
- Spring MVC接收参数的方式
- galera安装之编译安装xtrabackup 2.2.11
- jq仿京东图片放大效果
- Docker 容器真的安全么?
- FreeSWITCH 中的lua脚本里使用cjson的办法
- iOS 瘦身ViewController 分离tableViewDataSource
- AVALON-MM接口
- 安卓开发工具资料
- 字符串拼接规则
- 编写自己的Exception
- 时间复杂度和空间复杂度
- 使用到的一些开源项目 一般根据名字都能搜出源码
- 双缓冲技术(基于GDI+实现)
- galera 源码安装
- Android错误之setAdapter(adapter)空指针nullPointer 解决办法
- 程序设计小问题