将maven项目自动部署至私有nexus maven仓库
2015-11-16 20:51
267 查看
1.在项目Pom.xml中<project></project>之间加入
<distributionManagement>
<repository>
<id>releases</id>
<name>Popocloud Release Repository</name>
<url>http://192.168.1.86:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Popocloud Snapshot Repository</name>
<url>http://192.168.1.86:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
2.确保maven.settiong.xml中加入了私有仓库用户名和密码
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
3.对项目执行maven deploy命令,可实现将改项目构建到私有仓库供其他开发人员使用。
<distributionManagement>
<repository>
<id>releases</id>
<name>Popocloud Release Repository</name>
<url>http://192.168.1.86:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Popocloud Snapshot Repository</name>
<url>http://192.168.1.86:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
2.确保maven.settiong.xml中加入了私有仓库用户名和密码
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
3.对项目执行maven deploy命令,可实现将改项目构建到私有仓库供其他开发人员使用。
相关文章推荐
- 设计一款给爸爸妈妈的手机
- 顶点法线和面法线
- Objective-c:内存管理
- Objective-C运行时定义的几种重要的类型
- ViewPager
- 《leetCode》:N-Queens(奇葩的测试平台,居然不能AC)
- (原创)一般矩阵 Matrix类
- HDU 5524:Subtrees
- 列出各个部门中薪水最高的员工
- hdu 1023+1030+1134 卡特兰数+大数模板处理
- android菜鸟修炼记
- HDU 5524:Subtrees
- OpenCV在win32下不显示图像
- mysql初步备份方案
- hihocoder 1257 Snake Carpet 模拟构造题||2015北京现场赛I题
- 如何通过Fiddler对安卓应用进行抓包
- auto 与 decltype
- 熟悉linux开发环境(实验)
- Hive日志调试
- c++: 重载 覆盖 隐藏