上传第三方jar包到maven远程仓库nexus
2016-10-18 13:48
274 查看
上传第三方jar包到maven远程仓库nexus的参考:
一、cmd下命令行进入maven工具bin目录(eclipse自带的也行,我是直接copy eclipse maven插件文件到D盘的),如:D:\apache-maven-3.2.1\bin>
二、输入命令查看maven工具是否可用:mvn -version
1). 安装到本地库:
mvn install:install-file-DgroupId=com.mmp -DartifactId=cloud-oss-client -Dversion=0.0.8 -Dpackaging=jar
-Dmaven.test.skip=true -Dfile=F:\SogouDownload\cloud-oss-client-0.0.8.jar
2). 安装到远程私服:
mvn deploy:deploy-file-DgroupId=com.mmp -DartifactId=cloud-oss-client -Dversion=0.0.8-SNAPSHOT -Dpackaging=jar -Dfile=F:\SogouDownload\cloud-oss-client-0.0.8.jar -Durl=http://172.16.12.31:8080/nexus/content/repositories/mmp-snapshots/ -DrepositoryId=mmp-snapshots
-Dmaven.test.skip=true
其中跳过测试参数:-Dmaven.test.skip=true
如果上传报错无权限:Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
上传失败可能是conf文件夹下的setting.xml文件未配置用户信息导致,在setting文件设置用户名、密码即可
一、cmd下命令行进入maven工具bin目录(eclipse自带的也行,我是直接copy eclipse maven插件文件到D盘的),如:D:\apache-maven-3.2.1\bin>
二、输入命令查看maven工具是否可用:mvn -version
1). 安装到本地库:
mvn install:install-file-DgroupId=com.mmp -DartifactId=cloud-oss-client -Dversion=0.0.8 -Dpackaging=jar
-Dmaven.test.skip=true -Dfile=F:\SogouDownload\cloud-oss-client-0.0.8.jar
2). 安装到远程私服:
mvn deploy:deploy-file-DgroupId=com.mmp -DartifactId=cloud-oss-client -Dversion=0.0.8-SNAPSHOT -Dpackaging=jar -Dfile=F:\SogouDownload\cloud-oss-client-0.0.8.jar -Durl=http://172.16.12.31:8080/nexus/content/repositories/mmp-snapshots/ -DrepositoryId=mmp-snapshots
-Dmaven.test.skip=true
其中跳过测试参数:-Dmaven.test.skip=true
如果上传报错无权限:Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
上传失败可能是conf文件夹下的setting.xml文件未配置用户信息导致,在setting文件设置用户名、密码即可
相关文章推荐
- 上传jar到私服的两种方式From POM和GAV Parameters。使用Nexus管理Maven仓库时,上传带依赖的第三方jar.
- AndroidStudio如何打包生成realease版本的arr包,并上传到Nexus搭建的maven仓库,供项目远程依赖(一)
- AndroidStudio如何打包生成realease版本的arr包,并上传到Nexus搭建的maven仓库,供项目远程依赖(二)
- Maven指定文件上传远程仓库【非中央仓库】
- Maven之上传jar包到远程仓库
- Nexus下载Maven仓库索引(远程OR离线)
- Nexus远程Maven仓库索引下载教程
- 使用Nexus管理Maven仓库时,上传带依赖的第三方jar
- 如果maven远程仓库中,没有合适的jar,或者最新的jar没有上传,到官网上去下载,保存到本地执行。
- jar 上传到Maven 仓库(Nexus 3.x),第三方引用 笔记
- maven,nexus远程仓库地址及其配置
- maven/gradle 打包后自动上传到nexus仓库
- maven,nexus远程仓库配置
- nexus下载远程maven中央仓库的解决方案
- 怎样在nexus 中 搜索到远程maven仓库中的jar 文件
- Maven 上传 现有的 jar包到远程仓库
- 让Maven项目使用Nexus作为远程仓库的settings.xml配置
- Nexus远程Maven仓库索引下载教程
- Nexus下载远程Maven仓库索引
- maven上传第三方jar到nexus私服