`
cjx186
  • 浏览: 265430 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

nexus服务搭建

    博客分类:
  • java
阅读更多
1.下载Nexus
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.访问 http://127.0.0.1:8081/nexus/
  user:      admin
  password:  admin123

4.自定义库配置
网上除了maven官方之外还有很多站点提供maven依赖库的下载,需要注意如果有提示包下载失败,一定要先手动考贝日志中打印的路径到IE验证是否能拿到包信息.
首先进入到Repositories视图然后点Add button,得到如附件所示(添加一个新仓库的示例)
http://www.ibiblio.org/maven/mule/dependencies/maven2/




5.参考文章
maven 权威指南:十六章 仓库管理
http://www.sonatype.com/books/maven-book/reference_zh/repository-manager.html
  • 大小: 73.8 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics