`

Maven Repository Management & Nexus

    博客分类:
  • J2EE
阅读更多
  
Why do I need a Repository Manager?:
http://maven.apache.org/repository-management.html


Maven Repository Management with Nexus:
http://books.sonatype.com/nexus-book/reference/index.html
引用
使用 nexus 的两大好处 (http://books.sonatype.com/nexus-book/reference/repoman-sect-repoman.html):
Put simply, a repository manager provides two core features:
1. 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
2. The ability the host a repository providing an organization with a deployment target for software artifacts.



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


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


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


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



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics