nexus 3.1 发布jar包
来源:互联网 发布:网络空间租用价格 编辑:程序博客网 时间:2024/05/10 21:46
1.配置发布库
在工程pom.xml中配置:
<distributionManagement> <repository> <id>nexus_release</id> <name>Nexus Release Repository</name> <url>http://ip:8081/repository/maven-releases/</url> </repository> <snapshotRepository> <id>nexus_snapshot</id> <name>Nexus Snapshot Repository</name> <url>http://ip:8081/repository/maven-snapshots/</url> </snapshotRepository></distributionManagement>也可以配置到settings.xml中,本文不采用。
2.在settings.xml配置用户权限:
<server>
<id>nexus_snapshot</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>nexus_release</id>
<username>admin</username>
<password>admin123</password>
<id>nexus_snapshot</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>nexus_release</id>
<username>admin</username>
<password>admin123</password>
3. 上传
nexus 3以后不支持网页上传,所有使用命令上传:
mvn deploy:deploy-file -DgroupId=huawei -DartifactId=client-adapter -Dversion=0.3.12 -Dpackaging=jar -DrepositoryId=nexus_release -Dfile=D:/jar/client-adapter-sdk-java-oauth2-json-0.3.12.jar -Durl=http://localhost:8081/repository/maven-releases/ -DgeneratePom=true
4. 验证
上传成功。
1 0
- nexus 3.1 发布jar包
- gradle 发布jar包到nexus
- maven发布jar包到nexus仓库
- Maven发布jar包到Nexus私库
- 配置maven连接nexus并使用MyEclipse发布jar包
- nexus自定义jar包上传:
- nexus批量更新jar包
- 自己的maven项目jar包发布到nexus修改maven/settings.xml
- 发布本地jar到Nexus仓库
- hudson自动发布jar到Nexus
- maven 发布jar到 nexus 中央仓库
- maven 发布jar到Nexus 私服
- gradle发布jar到nexus和本地
- 发布jar包程序
- Myeclipse发布jar包
- springboot jar 包 发布
- SonaType Nexus上传自定义Jar包
- 上传第三方jar包到nexus
- You must call removeView() on the child's parent first
- [Gradle中文教程系列]-跟我学Gradle-8.7.多模块项目之 - spring boot + gradle + 构建公共jsp页面的多模块项目
- 更改Oracle字符集:把字符集ZHS16GBK换成UTF8
- IDEA使用教程汇总
- 高效的jQuery代码编写技巧总结
- nexus 3.1 发布jar包
- 初识后缀表达式
- PAT 1040 有几个PAT(dp)
- MFC工程下用终端 输出printf的打印
- 自定义Toolbar实现搜索框和普通Toolbar切换
- 51nod-1010-只含因子2、3、5的数【二分】【打表】
- [Hibernate]spring整合hibernate扫描实体类的两种方法annotatedClasses和packagesToScan的异同
- 详解GIT远程库的创建、与本地库关联以及推送内容到远程库
- 嵌入式操作系统之信号量,互斥信号量,事件标志组