views:

298

answers:

3

I'm doing the build automation for a java app with ant. This is a client-server app which has many projects in eclipse. I would like to create a jar file for the client and one for the server, but since the class dependencies are all over the projects (in eclipse)... I had the idea to use a tool to automate the search for dependencies. I've been looking at GenJar witch is almost all I need but it's not been updated in a while. So I would like to know if there are any other tools like this one, maybe Maven?

A: 

It kind of sounds like what you really want is a WAR file.

Charlie Martin
Sorry, forgot to mention this is not a web-app
Alonso
doesn't necessarily matter. A WAR is a JAR is a ZIP file; the metadata just let's you describes several places and different kinds of content.
Charlie Martin
+2  A: 

You may also try FatJar

Dennis Cheung
A: 

Personally I would go with Ant + Apache Ivy. Each project has its own build.xml file and publishes to a central Ivy repository. Other projects will simply download these dependencies as needed.

The advantage of having an Ant based build process is that you can very easily automate it and use a continuous server to build the entire product after each check-in.

Vladimir