Stacked Q&A

How to move a Netbeans maven project with all dependencies to other machine
  • 1 voting
  • 2022-05-25 00:00

    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.

  • 1 221 0 0
첨부 파일
답변
총 1개의 답변이있습니다.
  • 답변일: 2022-05-25 00:00

    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.

  • 0 0 퍼블 채택!
Tages
    활동순위
    유저
      파트너사