maven nexus linux私服搭建

搭建maven

下载jar包,将apache-maven-3.2.2-bin.tar.gz上传到server

1.解压 tar -zvxf apache-maven-3.2.2-bin.tar.gz
2.移动到指定文件夹 mv apache-maven-3.2.2 /usr/local

3.改动环境变量

vi /etc/profile

export MAVEN_HOME=/usr/local/apache-maven-3.2.2
export PATH=$PATH:$MAVEN_HOME/bin

4. source /etc/profile
5.測试安装情况 mvn --version

Nexus

下载jar包,将nexus-2.5.1-bundle.tar.gz上传到server

1.解压tar -zvxf nexus-2.5.1-bundle.tar.gz
2.移动到指定文件夹 mv nexus-2.5.1 /usr/local
3.cd /usr/local/nexus-2.5.1-01/bin
4.改动环境变量export RUN_AS_USER=root

5.启动程序 ./nexus start

打开浏览器。http://xx.xx.xxx.xxx:8081/nexus/index.html#welcome

posted @ 2017-04-16 13:59  zhchoutai  阅读(130)  评论(0编辑  收藏  举报