When you clone an eclipse project from a repository, project’s build path contains errors because of missing libraries. So each member of the team has to search and put the library jars to same location so that , when we clone a project, we don’t have any problem. Or they have to rearrange their build path after each cloning operation.
What is the best practice for avoiding this ?
One of the approach is to put all jars into some network share \\xxx\libraries, and add the jars from this network share. But is it the best idea ?
In our project, we add the ‘.classpath’ file to the repository. This contains the list of referenced libraries.
The libraries themselves are checked in to the repository as well under ‘lib’ folder.
We find this easier so when ever someone adds libraries to the project, they check out ‘.classpath’ and add the updated one.