Adding jar file to each project multiple times
I have three projects(Admin,user,viewer) for each of them i added jar files in class path in eclipse. Now i have to use some of admin modules in user and some of admin and user modules in viewer(no cyclic dependency). But is there any way to add jars(which are common for each project at one place). I am packing project classes into jars can i pack the jars also in it?
There are several options how to do this:
Create a "common base" project. Add all shared JARs to it and select all the JARs on the "Order & Export" tab in the "Java Build Path" editor. All this base project as a "Project" dependency to all other projects.
Create a User Library
Use Maven via the M2E plugin to manage you dependencies