分类: Java
2015-03-19 19:10:45
通过Maven自动发布构件到远程中央仓库-Nexus
1.在maven项目的pom里配置如下信息
<distributionManagement>
<repository>
<id>nexus-releasesid>
<url>url>
repository>
<snapshotRepository>
<id>nexus-snapshotsid>
<url>url>
snapshotRepository>
distributionManagement>
2.在setting.xml里配置下面的信息
<servers>
<server>
<id>nexus-releasesid>
<username>adminusername>
<password>***password>
server>
<server>
<id>nexus-snapshotsid>
<username>adminusername>
<password>***password>
server>
servers>
3.自动发布构件到远程中央仓库-Nexus
Maven命令:mvn deploy