Reputation: 2165
Is there any tool for java that I can use to automatically download the jars for the frameworks I want to use and manage there dependencies in Eclipse. I have always admired Visual Studio and how easy it is to do stuff like that and I'm wonder if there is any capability like that for Eclipse.
Upvotes: 0
Views: 228
Reputation: 3673
if you use maven as build tool
You could define the dependancies in pom.xml as below which will automatically download jars(junit-4.0.jar in this case) from specified repository on maven build.
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.0</version>
<type>jar</type>
<scope>test</scope>
<optional>true</optional>
</dependency>
...
</dependencies>
Upvotes: 0
Reputation: 31633
See Apache Buildr. It's compatible with maven repositories and uses Ruby scripting language instead of tenths of XML files.
Other options is Graddle, similar to latter and Groovy-based.
Upvotes: 0
Reputation: 2250
You can try Ivy http://ant.apache.org/ivy/, its a bit rough start but works great.
Upvotes: 0
Reputation: 59345
Use Maven, along with the m2 plugin for Eclipse. It is the most common way to automatically download dependencies in the Java world.
Upvotes: 5
Reputation: 61128
The best tool for dependency management is Maven. This would require you to maven-ify your eclipse project however.
With maven you specify your top-level dependency and Maven will work out what that dependency depends on.
Here is an SO question on converting an eclipse project to maven.
Upvotes: 1