1.[url=http://nexus.sonatype.org/downloads/]下载Nexus[/url]
2.解压即可 配置文件($nexus_path/conf/plexus.properties):
3.访问 [url]http://127.0.0.1:8081/nexus/[/url]
[color=darkblue] user: admin
password: admin123[/color]
4.自定义库配置
网上除了maven官方之外还有很多站点提供maven依赖库的下载,需要注意如果有提示包下载失败,一定要先手动考贝日志中打印的路径到IE验证是否能拿到包信息.
首先进入到Repositories视图然后点Add button,得到如附件所示(添加一个新仓库的示例)
[img]http://dl.iteye.com/upload/attachment/207601/10c98a3c-222a-3380-bf70-3e26f0fc7a39.jpg[/img]
5.参考文章
maven 权威指南:十六章 仓库管理
[url]http://www.sonatype.com/books/maven-book/reference_zh/repository-manager.html[/url]
2.解压即可 配置文件($nexus_path/conf/plexus.properties):
application-port=8081
application-host=0.0.0.0
runtime=${basedir}/runtime
apps=${runtime}/apps
nexus-work=${basedir}/../sonatype-work/nexus
webapp=${runtime}/apps/nexus/webapp
webapp-context-path=/nexus
security-xml-file=${nexus-work}/conf/security.xml
application-conf=${nexus-work}/conf
# If this file is present, it will be used to configure Jetty.
jetty.xml=${basedir}/conf/jetty.xml
端口如有冲突可以改一下,在第一行.其它的默认就行.
3.访问 [url]http://127.0.0.1:8081/nexus/[/url]
[color=darkblue] user: admin
password: admin123[/color]
4.自定义库配置
网上除了maven官方之外还有很多站点提供maven依赖库的下载,需要注意如果有提示包下载失败,一定要先手动考贝日志中打印的路径到IE验证是否能拿到包信息.
首先进入到Repositories视图然后点Add button,得到如附件所示(添加一个新仓库的示例)
http://www.ibiblio.org/maven/mule/dependencies/maven2/
[img]http://dl.iteye.com/upload/attachment/207601/10c98a3c-222a-3380-bf70-3e26f0fc7a39.jpg[/img]
5.参考文章
maven 权威指南:十六章 仓库管理
[url]http://www.sonatype.com/books/maven-book/reference_zh/repository-manager.html[/url]