Linux搭建Nexus配置maven私服
下载地址:Maven – Download Apache Maven
安装方式
1、war安装
https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.2-01.war
2、源码安装
下载解压 tar -zvxf 你的压缩包文件.tar.gz
移动
mv 文件夹名称 /usr/local/nexus
启动
/usr/local/nexus/bin/nexus
启动如果出现
Detected execution as "root" user. This is NOT recommended! 这个警告
不推荐使用root用户启动
打开
vim /etc/profile
修改 export RUN_AS_USER=root
使修改的生效
source /etc/profile
然后就可以进行访问了 默认端口是8081 如果有防火墙就打开防火墙
http://服务器ip:8081/nexus
3、修改端口号
在你nexus 目录下的conf文件夹
nexus.properties 文件
修改
application-port=8081
4、添加阿里云代理
http://maven.aliyun.com/nexus/content/groups/public/

填写:
Repository ID: aliyun
Repository Name: Aliyun Repository
Remote Storage Location: http://maven.aliyun.com/nexus/content/groups/public/
Save

把aliyun添加到仓库组中,记得把aliyun排在central上边。
刷新网页
选中仓库组Public Repositories
把Aliyun Repository从Availiable Repositories中拖到Ordered Group Repositories中,放在Central上边。

我这里是因为之前已经配置一个了一个阿里云的仓库

移过来阿里云的仓库代码就配置好了
最后
以上就是健壮店员最近收集整理的关于使用Nexus配置maven私服的全部内容,更多相关使用Nexus配置maven私服内容请搜索靠谱客的其他文章。
发表评论 取消回复