天天看点

linux下使用nexus3私服搭建后本地maven settings文件配置详细说明

本篇文章主要介绍使用nexus3搭建好私服并且配置好仓库后,如何在本地配置maven并且使用maven私服。

详细步骤:

1、修改本地maven的setting.xml配置文件servers节点

<server>

<id>nexus-3rdParty</id>

<username>admin</username>

<password>admin123</password>

</server>
           
linux下使用nexus3私服搭建后本地maven settings文件配置详细说明

2、mirrors节点配置仓库地址

<mirror>

<!--This sends everything else to /public -->

<id>nexus</id>

<mirrorOf>*</mirrorOf>

<url>http://192.168.234.128:8081/repository/maven-public/</url>

</mirror>
           
linux下使用nexus3私服搭建后本地maven settings文件配置详细说明

推荐博客:  

              linux下使用nexus3私服搭建后仓库配置并向nexus3私服上传jar包

              linux下使用nexus3私服搭建后本地maven settings文件配置详细说明

              Linux(阿里云Centos7)环境下使用nexus3 配置maven的私有仓库

             linux下使用nexus3配置maven私服 常用配置说明