简体   繁体   English

Nexus中的Maven存储库

[英]Maven repository in Nexus

I'm new to Maven and Nexus. 我是Maven和Nexus的新手。 I have already .m2 folder and it includes all of needed libraries with their pom, and working nexus. 我已经有.m2文件夹,它包含了所有需要的库以及它们的pom和工作连接。 I'm trying to make new Nexus and use this nexus instead of working nexus. 我正在尝试制作新的Nexus并使用此nexus而不是使用nexus。 After that my maven should download dependencies from new nexus. 之后我的maven应该从新的nexus下载依赖项。 How do I deploy all of the folders in the .m2 from working nexus to new nexus. 如何将.m2中的所有文件夹从工作nexus部署到新的nexus。 I don't now old nexus how installed and configured. 我现在不老nexus如何安装和配置。 The reason that download from new nexus is my working environment is offline.I looked up some questions but couldn't find exact answer. 从新的nexus下载是我的工作环境的原因是离线。我查找了一些问题,但找不到确切的答案。

.m2 isn't a Nexus repository. .m2不是Nexus存储库。 That's where a user's local repository is kept. 这就是用户本地存储库的保存位置。 Nexus keeps its files in a sonatype-work directory by default. 默认情况下,Nexus将其文件保存在sonatype-work目录中。 Generally speaking, you can just copy this directory from one Nexus installation to another, and it'll work fine. 一般来说,您只需将此目录从一个Nexus安装复制到另一个,它就可以正常工作。

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

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