linux Maven+nexus3服务搭建
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux Maven+nexus3服务搭建相关的知识,希望对你有一定的参考价值。
Maven
下载包:http://maven.apache.org/download.cgi
wget http://apache.fayea.com/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz
tar xf apache-maven-3.5.0-bin.tar.gz
mv apache-maven-3.5.0 /usr/local/maven
编译/etc/profile 添加系统变量
MAVEN_HOME=/usr/local/maven
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
source /etc/profile #重新读取变量
#验证
[[email protected] maven]# mvn -v
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)
Maven home: /opt/java/maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /opt/java/jdk1.8.0_131/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-514.el7.x86_64", arch: "amd64", family: "unix"
Nexus
下载包:https://www.sonatype.com/download-oss-sonatype
tar xf nexus-3.3.2-02-unix.tar.gz
mv nexus-3.3.2-02/ sonatype-work/ /opt
cd /opt
mv nexus-3.3.2-02 nexus3
#启动
/opt/nexus3/bin/nexus start &
#配置文件 /opt/nexus3/etc/nexus-default.properties
#修改数据存储路径文件 /opt/nexus3/bin/nexus.vmoptions
访问:端口默认8081
以上是关于linux Maven+nexus3服务搭建的主要内容,如果未能解决你的问题,请参考以下文章