简体   繁体   中英

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

If I move this code to another machine, the project downloads maven dependencies(as mentioned in the pom file) on that machine again. Is there is a way to move the netbeans project with all dependencies to another machine.

You can always tar/zip up the contents of ~/.m2 and transfer that to the other machine. That way your local maven repository on the remote machine will be primed with all the dependencies of the project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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