简体   繁体   English

如何将具有所有依赖项的Netbeans maven项目移动到其他计算机

[英]How to move a Netbeans maven project with all dependencies to other machine

I have netbeans maven project which has some dependecies and those dependencies downloaded in local repository C:\\Users\\acs\\.m2 我有netbeans maven项目,它有一些dependecies和那些依赖项下载到本地存储库C:\\Users\\acs\\.m2

If I move this code to another machine, the project downloads maven dependencies(as mentioned in the pom file) on that machine again. 如果我将此代码移动到另一台机器,该项目将再次在该机器上下载maven依赖项(如pom文件中所述)。 Is there is a way to move the netbeans project with all dependencies to another machine. 是否有办法将netbeans项目与所有依赖项一起移动到另一台机器上。

You can always tar/zip up the contents of ~/.m2 and transfer that to the other machine. 您可以始终tar /压缩〜/ .m2的内容并将其传输到另一台机器。 That way your local maven repository on the remote machine will be primed with all the dependencies of the project. 这样,远程计算机上的本地maven存储库将使用项目的所有依赖项进行准备。

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

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