私服的搭建
打开sonar
网页登陆10.0.0.203:9000
登陆 admin admin
方式二
点击立即构建
创建Maven私服nexus
安装两个包
[root@dayu ~] #ll
-rw-r--r-- 1 root root 170023183 May 6 18:13 jdk-8u181-linux-x64.rpm
-rw-r--r-- 1 root root 122904706 May 6 18:14 nexus-3.13.0-01-unix.tar.gz
[root@dayu ~] #tar xf nexus-3.13.0-01-unix.tar.gz
[root@dayu ~] # mv nexus-3.13.0-01 /usr/local/nexus
[root@dayu bin] # pwd
/usr/local/nexus/bin
[root@dayu bin] # ./nexus start
到Jenkins这台服务器
10.0.0.201
[root@genkins hello-world-war] # cd /usr/local/maven/conf/
[root@genkins hello-world-war] # cd /usr/local/maven/conf/
[root@genkins conf] # vim vim settings.xml
[root@genkins ~]# cd hello-world-war/
[root@genkins hello-world-war] # mvn clean
[root@genkins hello-world-war] # mvn package
[root@genkins hello-world-war] # mvn clean
[root@genkins hello-world-war] # mvn package