Tx-Lcn源码打包并上传到nexus私服
第一步:maven修改setting文件
添加nexus登录用户
<server>
<id>nexus</id>
<username>nexus账号</username>
<password>nexus密码</password>
</server>
第二步:修改tx-lcn下pom文件
将标签改为自己的nexus私服地址
<distributionManagement>
<snapshotRepository>
<id>nexus</id>
<url>http://nexus服务器地址:8081/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>nexus</id>
<name>Maven Central Staging Repository</name>
<!-- 自己的第三方依赖库-->
<url>http://192.168.188.94:8081/repository/3rdParty/</url>
</repository>
</distributionManagement>
注释掉nexus-staging-maven-plugin和ossrh配置
第三步:将所以项目的pom文件版本改为自定义版本否则可能会下载到官方版本
第四步:利用idea自动打包上传到nexus
在maven的tx-lcn生命周期中执行deploy
完成后可以在nexus上看到
上传成功!!!!