下载所有的依赖性

发布于 2025-01-21 05:55:19 字数 207 浏览 2 评论 0原文

我有一个Maven项目,其中POM文件中列出了许多Maven依赖项。由于安全原因,我需要在缺少任何Internet连接的情况下构建应用程序的计算机。

有没有办法将使用Maven的所有依赖项下载到具有Internet的计算机上的本地目录。然后将它们复制到离线计算机,然后通过使用所有依赖项在哪里使用此本地目录来修改POM文件以构建。这听起来有可能吗?有更好或更聪明的方法吗?谢谢您的建议。

I have a Maven project with lots of Maven dependencies listed in the POM file. The computer which I need to build the application on missing any Internet connection because of security reasons.

Is there a way to download all dependencies with Maven to a local directory on a computer with Internet. Then copy these to the offline-computer, and modify the POM file to build by using this local directory where all the dependencies are. Does this sound possible to you? Is there a better or smarter way? Thank you for any advice.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文