Maven私服(Best Practice - Using a Repository Manager)
A repository manager is a dedicated server application designed to manage repositories of binary components. The usage of a repository manager is considered an essential best practice for any significant usage of Maven.
译:一个库管理工具是一个单独的服务端程序,用来管理库里的二进制组件。使用库管理工具被认为是使用maven的一种最基本好的办法。
Purpose
A repository manager serves these essential purposes:
- act as dedicated proxy server for public Maven repositories
- provide repositories as a deployment destination for your Maven project outputs
译:一个管理库工具可以有以下目的:
* 作为Maven公开库的代理server
* 作为你的Maven工程部署文件的地址
Benefits and Features
Using a repository manager provides the following benefits and features:
- significantly reduced number of downloads off remote repositories, saving time and bandwidth resulting in increased build performance
- improved build stability due to reduced reliance on external repositories
- increased performance for interaction with remote SNAPSHOT repositories
- potential for control of consumed and provided artifacts
- creates a central storage and access to artifacts and meta data about them exposing build outputs to consumer such as other projects and developers, but also QA or operations teams or even customers
- provides an effective platform for exchanging binary artifacts within your organization and beyond without the need for building artifact from source
译:使用一个库管理工具将提供一下好处与特性:
* 很大程度减少了远程公开库的下载,节省时间和带宽,从而提供更好的性能.
* 提供build的稳定性,因为不需要再依赖到其他的库
* 增加与远程SNAPSHOT库交互的性能。
* 可能提供关于使用和提供工程的控制。
* 创建一个中央存储,并且访问工程和原数据给使用者比如工程开发人员,QA人员,甚至顾客。
Available Repository Managers
The following list (alphabetical order) of open source and commercial repository managers are known to support the repository format used by Maven. Please refer to the respective linked web sites for further information about repository management in general and the features provided by these products.
- Apache Archiva (open source)
- JFrog Artifactory Open Source (open source)
- JFrog Artifactory Pro (commercial)
- Sonatype Nexus OSS (open source)
- Sonatype Nexus Pro (commercial)
译:以下是以字母为顺序的开源和商业的公认的Maven管理工具。请点击链接查看更多的信息。
下一篇我们开始使用Nexus搭建私服。