简体   繁体   English

了解关于像 Nexus 这样的 Artifactory 的 Maven 存储库

[英]Understand Maven Repository with respect to Artifactory like Nexus

I am trying to set up CI & CD in a project I am working for my company.我正在尝试在我为公司工作的项目中设置 CI 和 CD。 I am using Maven as the build tool and Nexus Repository for storing the artifacts.我使用 Maven 作为构建工具,并使用 Nexus 存储库来存储工件。 I want to know the actual concept for setting up maven with nexus so that build time is fast and maven doesn't always connect to central maven repository on the internet for downloading the dependencies.我想知道使用 nexus 设置 maven 的实际概念,以便构建时间很快,并且 maven 并不总是连接到中央 maven 存储库以下载 Internet 上的依赖项。 I came across the proxy repository concept from nexus documentation and implemented the same.我从 nexus 文档中遇到了代理存储库的概念并实现了相同的。 So now, my nexus maven central proxy repository acts as the central repository for maven and the ~/.m2 as its local repository.所以现在,我的 nexus maven 中央代理存储库充当 maven 的中央存储库和 ~/.m2 作为其本地存储库。 Is there any way or the right concept to make the nexus central proxy repository as maven's local repository so that my builds will be faster and no storage will be occupied in the host server where maven is running?是否有任何方法或正确的概念可以将 nexus 中央代理存储库作为 maven 的本地存储库,以便我的构建速度更快,并且在运行 maven 的主机服务器中不会占用存储空间?

No, but you can delete the local repository on the CI server regularly if you get into disk space trouble.不可以,但是如果遇到磁盘空间问题,可以定期删除 CI 服务器上的本地存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM