1. 下载nexus https://download.csdn.net/download/xiaochuangchuang_/11665158
2.将安装包放到/usr/loca下
3.解压缩到/usr/local
4.尝试到bin目录下运行./nexus start
(vim /etc/profile export RUN_AS_USER=root source /etc/profile--用root启动)
5.登入首页 http://ip:8081/nexus(admin admin123) 默认端口在user/local/nexus-2.11.0-02/conf/nexus.properties里可修改
6.进入repositories菜单中add Repository Group 名称为myGroup
7.进入.../sonatype-work/nexus/sotrage/myGroup 和6对应 ftp传送jar文件夹
8.修改setttings.xml文件
1-> <serviers>标签内添加 (nexu用户名和密码)
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin132</password>
</server>
2-><mirrors>标签内添加
3-> <profiles>标签内添加
4->修改<activeProfiles>