为区分项目,要为项目建立私有仓库
1.添加仓库
2.填写私有仓库信息,然后保存
Riil Release仓库
3.配置成功
5.添加Riil Release的权限和Riil Snapshot的权限
7.创建角色,分配权限
8.创建用户
<distributionManagement>
<snapshotRepository>
<id>snapshots-riil</id>
<name>Snapshots</name>
<url>http://172.16.13.111:8081/nexus/content/repositories/RiilSnapshot/</url>
</snapshotRepository>
<repository>
<id>releases-riil</id>
<name>Releases</name>
<url>http://172.16.13.111:8081/nexus/content/repositories/RiilRelease/</url>
</repository>
</distributionManagement>
10.修改settings.xml
<server>
<id>snapshots-riil</id>
<username>chl</username>
<password>chl</password>
</server>
<server>
<id>releases-riil</id>
<username>chl</username>
<password>chl</password>
</server>
11.运行clean deploy