Is there an easier way to change build paths in Eclipse?

I just want to know if there is an easier way to change the build path of .jar files and other libraries in Eclipse when I import the project from another computer?

Let's say my file path is m2: C:\Users\Bill\.m2\repository

but the same path of another computer is C:\Users\Steve\.m2\repository

. So now when I import a maven project from Bills computer to Steves, I have 50+ missing jar files (like this one C:\Users\Bill\.m2\repository\jtidy\jtidy\4aug2000r7-dev

) just because the path is stuck in Bill and I have to manually change all those \ Steves.

My question is, is there a faster way to do this, or to prevent it in the first place?

+3


source to share


2 answers


Make sure your Eclipse has a maven plugin first. If not, please install this from the Eclipse Marketplace

The local repository can be configured on the local Eclipse machine:

Window -> Preference -> Maven -> User Settings -> 

      



Then you can put your custom parameter and you can re-specify the path where you want to put the JAR files

Local repository should be .../.m2/repository

and re-index the repository. Custom settings can be.../.m2/settings.xml

+1


source


If you have the files located in .m2/repository

then you are running a Maven project and should use m2eclipse to manage classes and similar configuration.



+1


source







All Articles