[root@mysql-tomcat nexus]# ll
total 211404
-rw-r--r-- 1 root root 216470874 Sep 4 12:15 nexus-3.41.1-01-unix.tar.gz
drwxr-xr-x 3 root root 4096 Sep 4 12:14 sonatype-work
[root@mysql-tomcat nexus]# tar -zxvf nexus-3.41.1-01-unix.tar.gz
......
[root@mysql-tomcat nexus]# ll
total 211408
drwxr-xr-x 10 root root 4096 Sep 4 12:16 nexus-3.41.1-01
-rw-r--r-- 1 root root 216470874 Sep 4 12:15 nexus-3.41.1-01-unix.tar.gz
drwxr-xr-x 3 root root 4096 Sep 4 12:14 sonatype-work
[root@mysql-tomcat nexus]# rm -rf nexus-3.41.1-01-unix.tar.gz
[root@mysql-tomcat nexus]# ll
total 8
drwxr-xr-x 10 root root 4096 Sep 4 12:16 nexus-3.41.1-01
drwxr-xr-x 3 root root 4096 Sep 4 12:14 sonatype-work
[root@mysql-tomcat nexus]#

[root@mysql-tomcat nexus]# ll
total 8
drwxr-xr-x 10 root root 4096 Sep 4 12:16 nexus-3.41.1-01
drwxr-xr-x 3 root root 4096 Sep 4 12:14 sonatype-work
[root@mysql-tomcat nexus]# cd nexus-3.41.1-01/
[root@mysql-tomcat nexus-3.41.1-01]# ll
total 96
drwxr-xr-x 3 root root 4096 Sep 4 12:16 bin
drwxr-xr-x 2 root root 4096 Sep 4 12:16 deploy
drwxr-xr-x 7 root root 4096 Sep 4 12:16 etc
drwxr-xr-x 5 root root 4096 Sep 4 12:16 lib
-rw-r--r-- 1 root root 651 Aug 18 21:55 NOTICE.txt
-rw-r--r-- 1 root root 17321 Aug 18 21:55 OSS-LICENSE.txt
-rw-r--r-- 1 root root 41954 Aug 18 21:55 PRO-LICENSE.txt
drwxr-xr-x 2 root root 4096 Sep 4 12:16 public
drwxr-xr-x 3 root root 4096 Sep 4 12:16 replicator
drwxr-xr-x 22 root root 4096 Sep 4 12:16 system
[root@mysql-tomcat nexus-3.41.1-01]# cd bin
[root@mysql-tomcat bin]# ll
total 32
drwxr-xr-x 2 root root 4096 Sep 4 12:16 contrib
-rwxr-xr-x 1 root root 18620 Aug 18 21:55 nexus
-rw-r--r-- 1 root root 15 Aug 18 21:55 nexus.rc
-rw-r--r-- 1 root root 1635 Aug 18 21:55 nexus.vmoptions
[root@mysql-tomcat bin]# ./ nexus start
-bash: ./: Is a directory
[root@mysql-tomcat bin]# ./nexus start
WARNING: ************************************************************
WARNING: Detected execution as "root" user. This is NOT recommended!
WARNING: ************************************************************
Starting nexus
[root@mysql-tomcat bin]#
点击登录

查看用户名和密码


点击登录









章节概述
创建新项目:MavenTest-Nexus
使用新的本地仓库:maven_repository_nexus
4.1 使用public仓库下载第三方jar包
4.2 将开发的jar包部署到snapshot仓库
4.3 使用snapshot仓库下载内部的jar包
在任意工程中引入MavenTest-Nexus工程依赖
使用MavenTest-Nexus工程中的类Demo

<servers>
<server>
<id>nexus-mindid>
<username>adminusername>
<password>123456password>
server>
servers>
<mirrors>
<mirror>
<id>nexus-mindid>
<mirrorOf>centralmirrorOf>
<name>Nexus publicname>
<url>http://120.77.44.184:8081/repository/maven-public/url>
mirror>
mirrors>








部署前snapshots仓库

部署后snapshots仓库





