nexus私服搭建及信息配置

nexus私服搭建及信息配置

下载

登录nexus官网下载nexus安装包https://help.sonatype.com/repomanager2/download/download-archives---repository-manager-oss

  • 我一开始在官网上没有成功的将安装包下载下来,所以使用的nexus的war包

启动服务

  • 使用war包形式,将nexus的war包放在tomcat webapps目录下,启动tomcat即可。


访问nexus服务

第一次访问时,是匿名用户登录,只能看到部分权限,需要切换到admin用户,默认密码是admin123

setting.xml文件配置




insuresmart-nexus
admin
admin123



insuresmart-nexus-releases
admin
admin123


insuresmart-nexus-snapshots
admin
admin123



insuresmart-nexus
Yitong Nexus Repository
*
http://localhost:8080/nexus/content/groups/public/



insuresmart-nexus


insuresmart-nexus
insuresmart nexus repository
http://localhost:8080/nexus/content/groups/public/

true


true





insuresmart-nexus
insuresmart nexus repository
http://localhost:8080/nexus/content/groups/public/

true


true





central


central
http://central

true


true





central
http://central

true


true






insuresmart-nexus
central

pom.xml文件配置




insuresmart-nexus-releases
insuresmart-nexus-releases
http://localhost:8080/nexus/content/repositories/releases/


insuresmart-nexus-snapshots
insuresmart-nexus-snapshots
http://localhost:8080/nexus/content/repositories/snapshots/

标签id的值必须与setting文件中server标签中的值一致。


insuresmart-nexus-releases
admin
admin123


insuresmart-nexus-snapshots
admin
admin123

posted @ 2019-07-09 17:02  迷茫的小草  阅读(3626)  评论(0)    收藏  举报