Ubuntu14.0.4安装及配置系列-nexus3.1.0的安装配置

下载nexus3.1.0到本地

上传本地nexus到Ubuntu服务器

1
$ scp nexus-3.1.0-04-unix.tar.gz root@121.40.66.176:/root/soft/

解压nexus到指定目录

1
# tar -zxvf nexus-3.1.0-04-unix.tar.gz -C /root/install/

启动

1
# ./nexus start

停止

1
# ./nexus stop

访问

http://localhost:8081/

  • 用户名:admin
  • 密码:admin123

使用

配置settings.xml

1
2
3
4
5
6
7
8
9
10
11
12
<servers>
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>

配置pom.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
<distributionManagement>
<repository>
<id>releases</id>
<name>nexus releases</name>
<url>http://kangyonggan.com:8081/repository/maven-releases/</url>
</repository>

<snapshotRepository>
<id>snapshots</id>
<name>nexus snapshots</name>
<url>http://kangyonggan.com:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>