maven2
详情请下载文档
流程图:
pom--|war
|-jar
远程发布:pom.xml 配置
<distributionManagement>
<repository>
<id>remot</id>
<name>remot</name>
<url>http://10.73.12.23:8080/nexus/content/repositories/ip_Release
</url>
</repository>
<snapshotRepository>
<id>remot_Snapshots</id>
<name>remot Snapshots</name>
<url>http://10.73.12.23:8080/nexus/content/repositories/ip_Snapshots
</url>
</snapshotRepository>
</distributionManagement>
注:此处ID需要在setting.xml中配置
<server>
<id>remot</id>
<username>remot</username> 登录的用户名
<password>remot</password> 登录的密码
</server>
仓库配置:
<mirror>
<id>repositories</id>
<mirrorOf>*</mirrorOf>
<name>all the url which can not be link to public internet,link the url below.</name>
<url>http://10.73.12.23:8080/nexus/content/groups/repositories</url>
</mirror>