| Author |
multiple eclipse projects want to use same set of jar files
|
Chrix Wu
Ranch Hand
Joined: Nov 15, 2009
Posts: 121
|
|
Hi folks,
I am using eclipse to do a series of hibernate examples,
each of them is an independent project under same workspace,
but all of them are referring to same set of jar files, e.g. hibernate core jars, jdbc, etc.
currently i need to configure the build path for each of them, which is very tedious, is there any better way to do it?
thanks
|
** SCJP 5.0 84% **
** SCWCD 1.5 76% **
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
Eclipse allows you to refer to project B in project A's build path, doesn't it? So set up a project which just contains the commonly-used jars, and have all your other hundreds of projects refer to it.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14491
|
|
Projects like what you're describing a usually very complex, and Eclipse isn't really intended to build complex projects all by itself. You're usually better off using Maven or Ant along with Eclipse.
Ant support is built-in, but Ant cannot fetch external libraries without help. Maven, on the other hand, is primarily based on the concept of external libraries (dependencies). You have to install an Eclipse plug-in to get full Maven support in Eclipse, but if you do, it will not only help you build those projects, it will automatically add the Maven dependencies to the Eclipse project build path.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: multiple eclipse projects want to use same set of jar files
|
|
|