1. 部署环境
linux
jdk
maven
2. 安装部署
2.1 下载地址
http://www.sonatype.org/
http://www.sonatype.org/downloads/nexus-2.0.6-bundle.tar.gz
nexus-2.0.6-bundle.tar.gz
2.2 安装
2.2.1 解压部署
tar zxvf nexus-2.0.6-bundle.tar.gz
cp -rf nexus-2.0.6-bundle /usr/local/nexus
2.2.2 Web服务器使用jetty
修改配置文件nexus.properties
vi /usr/local/nexus/conf/nexus.properties
application-port=8080
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus
# Nexus section
nexus-work=${bundleBasedir}/../sonatype-work/nexus
runtime=${bundleBasedir}/nexus/WEB-INF
pr.encryptor.publicKeyPath=/apr/public-key.txt
修改端口(避免冲突)application-port=8084
2.2.3 修改Maven配置文件/root/.m2/setting.xml 如果不存在就新建
<settings>
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://localhost:8084/nexus/content/groups/public</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<!--Enable snapshots for the built in central repo to direct -->
<!--all requests to nexus via the mirror -->
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
2.2.4 nexus 启动/停止/重启
cd /usr/local/nexus/bin
./nexus start/stop/restart
2.2.5 项目pom.xml引用
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>Team Nexus Repository</name>
<url>http://localhost:8081/nexus/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
3. nexus应用配置
3.1 默认登录
http://localhost:8084/nexus
user:admin
password: admin123
3.2 其它配置自己设置
4. 参考地址
官网
http://www.sonatype.org/nexus
http://www.sonatype.com/index.php/Support/Books/Repository-Management-with-Nexus?__utma=246996102.759110873.1343122991.1343122991.1343191487.2&__utmb=246996102.10.10.1343191487&__utmc=246996102&__utmx=-&__utmz=246996102.1343122991.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=77694231
Read Online
http://www.sonatype.com/books/nexus-book/reference/
相关推荐
Windows 下Nexus搭建Maven私服 Windows 下Nexus搭建Maven私服
关于使用Nexus搭建Maven私服的开发文档。新手了解一下。
Maven Nexus 私服搭建 从零开始,资源下载、安装指导、开发配置说明
提供了基于Nexus搭建Maven私服所需要的一切资源和个人经验,搭建后可maven deploy 上传自己的jar包。别人如何在自己的maven项目中引用我将单独再上传一份。
maven使用及Nexus搭建Maven私服
Nexus搭建Maven私服 +maven安装步骤
使用nexus 可以搭建maven私服,如何使用nexus搭建maven 本地服务器呢?
nexus搭建maven私服1
详细的使用Nexus搭建Maven私服的步骤指导
使用Nexus1.8搭建MAVEN私服详细步骤,以及在网页上上传JAR包
nexus maven私服搭建nexus maven私服搭建nexus maven私服搭建nexus maven私服搭建nexus maven私服搭建nexus maven私服搭建
Nexus私服搭建步骤,详细教程,自己整理,注意,nexus版本不同,安装方式不同,使用方式一样.
操作步骤清晰 简单易懂,分分钟就完成搭建
官网十分难下载,我这边给大家提供了windows版本以及Linux版本,给大家压缩到一起了,分别有:nexus-3.37.3-02-win64.zip,nexus-3.37.3-02-unix.tar.gz,大家可以自由下载使用。
Maven私服Nexus搭建详细配置介绍,需要修改settings.xml、pom.xml等文件的参数
如果没有私服,我们所需的所有构件都需要通过maven的...这个时候我们不得不为自己的团队搭建属于自己的maven私服,这样既节省了网络带宽也会加速项目搭建的进程,当然前提条件就是你的私服中拥有项目所需的所有构件。
持续集成之路,nexus私服搭建帮助手册