Saturday, September 17, 2016

How to setup Apache Invy dependencies in Eclipse

Hello everyone,

     I am here today to share with you how to setup Apache InveDE and these great features that comes with with Ivy.

First of all I would like to explain you what are the benefits of using Apache Ivy on you projects:

 Apache Ivy born from Apache Ant project. It born to resolve project dependencies and the time consuming to find what are the project dependencies every time you load it on a different place. In some way I would say that it competes with Apache Maven, but they differ on the distribution. Maven is a complete build tool, whereas Ivy is focused only on managing transitive dependencies. So, is some way I would say that the beauty of Ivy is that you can use the feature with any build process you already have in your company. So, Ivy has an external XML file that defines project dependencies as well as the list of resources necessary to build a project. Ivy then resolves it and downloads resources from an artifact repository. The last one can be either a private repository or one publicly available on the Internet.


Second of all I will provide you the steps to make it happen in Eclipse IDE, so let's rock it on!

First Step:



    1. On Eclipse: add the IvyDE update site. Following these steps (Note that for Eclipse 3.4 it may be different than what I am showing you today):
    2. Eclipse-Open the update manager tool: Help > Software Updates > Find and Install...
    3. On the popup window, select Search for features to install, and click Next
    4. Click on New Remote Site... to add new url.
    5. Name: the way you want, but I will suggets something related of Ivy to not forget it
    6. URL: http://www.apache.org/dist/ant/ivyde/updatesite
    7. Click OK
    8. A new entry "Ivy site update" will appear in the list of update sites

  • Configuring the Ivy IDE plugin
    1. In order to move forward, please have created Ivy files in the eclipse project if you are setting up a new project or they are not included in the your project already.                                
    2. Add the libraries related of Ivy, running the add library feature, and the library called 'IvyDe Managed Dependencies'. 
    3. Have configured the library to use the files created in step1.  
    4. If you don't see the dependencies by any reason, you can always add it manually click on 'resolve dependencies' feature.

           


   Once you are done with these steps above, you are ready to start coding and working with Ivy on your Eclipse new project. Please remember that you can use any build tool with Ivy libraries.


I hope it helps you, if so share with others. See you on next topic.
Thiago