Maven Repository Management & Nexus

Why do I need a Repository Manager?:
[url]http://maven.apache.org/repository-management.html[/url]


Maven Repository Management with Nexus:
[url]http://books.sonatype.com/nexus-book/reference/index.html[/url][quote]使用 nexus 的两大好处 ([url]http://books.sonatype.com/nexus-book/reference/repoman-sect-repoman.html[/url]):
Put simply, a repository manager provides two core features:[b]
[color=red]1. [/color]The ability to proxy a remote repository and cache artifacts saving both bandwidth and time required to retrieve a software artifact from a remote repository, and
[color=red]2. [/color]The ability the host a repository providing an organization with a deployment target for software artifacts.[/b]
[/quote]

Maven primary post:
[url]http://wuaner.iteye.com/blog/415553[/url]


Other srcs:
[url]http://juvenshun.iteye.com/blog/349534[/url]
[url]http://log-cd.iteye.com/blog/323213[/url]


“Public Snapshot Repositories” 这个默认的 group 类型的 repository 在 nexus 1.6 中被移除,参见:
[url]http://blog.sonatype.com/2010/04/whats-new-in-nexus-1-6/[/url]


[b]关于在使用 nexus 时 overridden 覆盖 super POM 中 id 为 central 的默认 repo:[/b]
即使你使用了 neuxs 作为 local repo manageer 并在其中 proxy 代理了 maven 中央仓库,但是 super POM 中 id 为 central 的 maven 中央仓库还是会在项目构建时起作用,造成的结果就是 nexus 两大好处中的第一条不起作用了!为了避免这个问题,可以借助 ~/.m2/settings.xml:
[url]http://stackoverflow.com/questions/16165137/what-does-http-central-mean-in-my-maven-settings-xml[/url]
[url]http://books.sonatype.com/nexus-book/reference/maven-sect-single-group.html[/url]
[url]http://maven.apache.org/guides/mini/guide-mirror-settings.html[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值