搭建maven私服(nexus)

环境:

        mac 、CentOS7

       jre 1.8

      nexus OSS 3.9.0-01

 

1. 下载安装包(见附件)

   官网:https://www.sonatype.com

2. 解压

   zip包mac直接解压即可,或使用如下命令

   unzip nexus-3.9.0-01.zip

3. 启动服务

切换至 nexus-3.9.0-01/bin目录下,执行 nexus run即可

cd exus-3.9.0-01

./nexus run

搭建maven私服(nexus)

4. 访问http://192.168.1.*:8081/

搭建maven私服(nexus)

默认端口8081,使用ip+端口的方式访问,使用localhost代替IP可能出现无法访问的情况

配置文件路径:nexus-3.9.0-01/etc/nexus-default.properties

默认账号/密码:admin/admin123

tips:

1. 如果出现异常Could not resolve mvn:org.apache.felix/org.apache.felix.framework/5.6.2

请尝试重新解压文件(一般情况是因为文件丢失造成的)

2. 如果出现 Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

请安装java运行环境(jre 1.8 或以上)