maven 服务器搭建 -- nexus

参考文档

http://blog.sina.com.cn/s/blog_5745d6cb0100hasa.html

首先下载nexus webapp,可以使用wget来下载:

Java代码 

  1. wget http://www.sonatype.org/downloads/nexus-latest-bundle.zip


    默认保存在用户的主目录下,然后解压缩:

Java代码 

  1. sudo cp nexus-webapp-1.2.1-bundle.tar.gz /usr/local  

  2. cd /usr/local  

  3. tar xvzf nexus-webapp-1.2.1-bundle.tar.gz  

  4. ln -s nexus-webapp-1.2.1 nexus  



    这时候就可以启动了,当然前提是你已经安装了java:

Java代码 

  1. cd nexus  

  2. ls ./bin/jsw/  

  3. ./bin/jsw/linux-x86-32/nexus start  

  4. tail -f logs/wrapper.log 

可能需要安装:sudo apt-get install sysvconfig,这样nexus就可以正常使用了,默认地址为:http://localhost:8081/nexus/index.html,管理员用户名密码为:admin/admin123。

管理员登录到系统后可以对仓库和用户进行管理。
之后,将是maven客户端的设置与使用。

原文地址:https://www.cnblogs.com/zyguo/p/5036854.html