gpt4 book ai didi

maven - Nexus 和 Maven 有什么区别?

转载 作者:行者123 更新时间:2023-12-03 04:36:38 24 4
gpt4 key购买 nike

NexusMaven 有什么区别?

仅使用Maven的基本场景是什么?只考虑 Nexus 的场景怎么样?当我想同时使用两者时,它会是什么样子?

最佳答案

Sonatype NexusApache Maven是两个经常一起工作的软件,但它们的工作部分却截然不同。 Nexus 提供存储库,而 Maven 使用存储库来构建软件。

这里引用了“What is Nexus?”:

Nexus manages software "artifacts" required for development. If you develop software, your builds can download dependencies from Nexus and can publish artifacts to Nexus creating a new way to share artifacts within an organization. While Central repository has always served as a great convenience for developers you shouldn't be hitting it directly. You should be proxying Central with Nexus and maintaining your own repositories to ensure stability within your organization. With Nexus you can completely control access to, and deployment of, every artifact in your organization from a single location.

这里引用“Maven and Nexus Pro, Made for Each Other ”解释 Maven 如何使用存储库:

Maven leverages the concept of a repository by retrieving the artifacts necessary to build an application and deploying the result of the build process into a repository. Maven uses the concept of structured repositories so components can be retrieved to support the build. These components or dependencies include libraries, frameworks, containers, etc. Maven can identify components in repositories, understand their dependencies, retrieve all that are needed for a successful build, and deploy its output back to repositories when the build is complete.

因此,当您想同时使用两者时,您将拥有一个由 Nexus 管理的存储库,并且 Maven 将访问该存储库。

关于maven - Nexus 和 Maven 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23082621/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com