nexus服务搭建

1.[url=http://nexus.sonatype.org/downloads/]下载Nexus[/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]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值