maven 私服搭建-nexus

1.下载jdk和nexus安装包

jdk-7u75-linux-x64.rpm

nexus-2.14.8-01-bundle.tar.gz

2.安装jdk

提交到服务器/usr/local/

rpm -ivh jdk-7u75-linux-x64.rpm

3.安装nexus

tar -xvf nexus-2.14.8-01-bundle.tar.gz

cd /usr/local/nexus-2.14.8-01/bin

./nexus start

Nexus OSS is running (665).

4.访问地址

http://***:8081/nexus  点击server 右侧点击save

maven 私服搭建-nexus


5.本地mavn setting配置

 <server>
      <id>thirdparty</id>
      <username>admin</username>
      <password>admin123</password>
    </server>
    <server>  
<id>Snapshots</id>  
<username>admin</username>  
<password>admin123</password>  
   </server>   

6.eclipse maven工程pom配置

 <repositories>
        <repository>
            <id>local_public</id>
            <name>Local Pub Repository</name>
            <url>http://***:8081/nexus/content/groups/public/</url>
        </repository>
    </repositories>

7结束。

mavn nexus私服搭建完毕。