• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple eclipse projects want to use same set of jar files

 
Chrix Wu
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic