Most Eclipse distributions include a plugin to launch Ant build files. The provided Ant distribution is a standard distribution of Ant that doesn't include Ivy. You may wish to run Ivy targets against Eclipse's Ant distribution.
Configure Ant classpath
For now, IvyDE doesn't contribute to the Ant classpath of the Eclipse plugin, so you will have to do it manually. In the global preference page of the Ant runtime, click on
Add External JARs...
Then browse your filesystem to the
plugins
directory of your Eclipse installation and select the Ivy jar named
org.apache.ivy_2.X.X.XXXXXXXXX.jar
. Now Ivy has been added to the classpath of the Ant distribution embedded in Eclipse.
Run Ivy targets
Create an Ant build file and declare the Ivy targets with:
And don't forgot to declare the namespace
xmlns:ivy="antlib:org.apache.ivy.ant"
. After the taskdefs have been added, you will have code completion on Ivy tasks:
The build will now be successful: