1. 下载Nexus
下载地址:http://nexus.sonatype.org/
2. 启动Nexus
nexus-2.0.6-bundle/nexus-2.0.6/bin/jsw/linux-x86-64/nexus 启动
3. 进入Nexus管理页面
http://localhost:8081/nexus/index.html
默认密码 admin admin123
点击Repositories ,可以看到仓库列表,包括下面几种:
Public Repositories 仓库组
3rd part 三方库,可以上传jar包到这个仓库
Central maven中心仓库
Releases 自己项目中发布的构建
Snapshots trunk 下开发一个项目
这里需要注意把Central 仓库的自动更新设置为True:

更新之后能看到Index:

<!-- nexus帳號和密碼-->
<server>
<id>nexus-releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<!-- 引用naxus倉庫組-->
<profile>
<id>dev</id>
<repositories>
<repository>
<id>nexus</id>
<url>http://127.0.0.1:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<url>http://127.0.0.1:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
修改maven的配置文件
更多 :http://san-yun.iteye.com/blog/1609410