Resolving library and dependency errors in ant+ivy

In the case when there are library and dependency errors in java files or in any xml configuration, here is how to the fix issues when using ant+ivy.

First is to look for the ivy.xml files under the libraries folder. Then, highlight all ivy.xml files , right click and select “resolve”. Ivy will then retrieve and resolve the libraries and dependencies by using an eclipse process, which will take several minutes. After the process has ended, check if the errors still exist. In some cases, this basic troubleshooting is the simple solution.

Apache Ant is a Java build script, which is similar / or a competitor to Maven. The Ant build scripts do not have the library dependency download ( from the internet ) function that Maven has, but with Ivy, Ant can now have the library dependency dowload function.

See the sample screenshot of the ivy.xml files

ivy_resolve

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s