Freiheit
Freiheit

Reputation: 8767

How to export each open project in Eclipse as its own JAR?

I have several projects open in an Eclipse workspace. Like so:

com.harbl.project.one
com.harbl.project.two
com.harbl.project.three

I would like to export those as JARs in a batch such that I wind up with the following JAR files:

./com.harbl.project.one.jar
./com.harbl.project.two.jar
./com.harbl.project.three.jar

Is this possible with one of the Eclipse wizards or working sets? Is my only option to export each one individually?

Upvotes: 0

Views: 289

Answers (1)

Matthew Farwell
Matthew Farwell

Reputation: 61705

If you're after a long term solution, then maven is an option. You can set up each project with it's own pom, and you can manage each one separately, but with a parent pom for building everything.

Take a look at http://maven.apache.org/

If you're looking to simply get the right class files into the right jars, use ANT.

Upvotes: 2

Related Questions