- Documentation (2.5.0)
- Release Notes
- Settings Files
- Ivy Files
- Ant Tasks
- post resolve tasks
- Using standalone
- Developer doc
Building from source
To build Ivy from source it’s really easy.
All you need is
Get the source
You can either get the sources from a release, or get them directly from Git:
git clone git://git.apache.org/ant-ivy.git
Go to the directory where you get the Ivy sources (you should see a file named build.xml) and run:
Check the result
The Ant build will compile the core classes of Ivy and use them to resolve the dependencies (used for some optional features). Then it will compile and run tests with coverage metrics.
If everything goes well, you should see the message:
Then you can check the test results in the build/doc/reports/test directory, the jars are in build/artifacts, and the test coverage report in build/doc/reports/coverage
The Ivy code base is supposed to follow Java Code Conventions: http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html
This is a work in progress though (see IVY-511), but patches helping migration to these conventions are welcome.
Developing with Eclipse
Even though you can develop Ivy with your IDE of choice, we support Eclipse development by providing ad hoc metadata.
We currently provide two options:
To develop with a simple Eclipse install all you need is Eclipse 4.2 or greater, with no particular plugin. First call the following Ant target in your Ivy workspace:
This will resolve the dependencies of Ivy and produce a .classpath using the resolved jars for the build path. Then you can use the "Import→Existing project into workspace" eclipse feature to import the Ivy project in your workspace.
Eclipse + IvyDE
You can also leverage the latest IvyDE version to be able to easily resolve the Ivy dependencies from Eclipse. To do so all you need is call the following Ant target in your Ivy workspace:
or if you don’t have Ant installed you can simply copy the file .classpath.ivyde and rename it to .classpath
Then you can import the project using "Import→Existing project into workspace" as long as you already have latest IvyDE installed.
To install latest IvyDE version compatible with the latest Ivy used to resolve Ivy dependencies, you will need to use a snapshot build, not endorsed by the ASF, available here: https://builds.apache.org/view/A/view/Ant/job/IvyDE/
Download the file and unzip its content in your Eclipse installation directory.
The Ivy project comes with settings for the Checkstyle plugin we recommend to use to avoid introducing a new digression to the Checkstyle rules we use. If you use this plugin, you will see many errors in Ivy. As we said, following strict Checkstyle rules is a work in progress and we used to have pretty different code conventions (like using _ as prefix for private attributes), so we still have things to fix. We usually use the filter in the problems view to filter out Checkstyle errors from this view, which helps to know what the real compilation problem are.
Besides this plugin we also recommend to use a Git plugin, EGit.