5.使用nexus配置maven私有仓库
The world’s first and only universal repository solution that’s FREE to use
- 解压
tar -zxvf nexus-3.15.2-01-unix.tar.gz
- 进入bin目录执行
./nexus run &
-
访问ip:8081
登录
默认用户名、密码:admin/admin123 -
配置修改
vi nexus.rc
#修改运行nexus所使用的用户
run_as_user="root"
#修改启动所使用的jdk版本
INSTALL4J_JAVA_HOME_OVERRIDE=////jdk8
vi nexus-default.properties
#修改默认端口
application-port=8888
vi nexus.vmoptions
#数据以及相关日志的存储位置
-XX:LogFile=
-Dkaraf.data=
-Djava.io.tmpdir=
- 修改settings.xml配置文件,使用nexus私有仓库
<server>
<id></id>
<username></username>
<password></password>
</server>
<mirrors>
</mirrors>
<repository>
</repository>
- 上传jar包到nexus
不做详细探讨