Ivy: Retrieve Both .jar And -sources.jar Into A Folder – Note to Self

After some experimenting I’ve found out how to tell Ivy (2.2.0) to retrieve also .jar with source codes into a folder: Ivy.xml: The important thing here is the second artifact line with type and classifier sources and extension jar. Ant: Notice the second retrieve line – the type is set to sources and we’ve changedContinue reading “Ivy: Retrieve Both .jar And -sources.jar Into A Folder – Note to Self”

Advertisement

Ivy: How to Retrieve Source Codes of Dependencies

Summary: To download sources you must map the dependency’s conf also to ‘sources’ (ex.: conf=”myScope->default,sources”). If you are using Apache Ivy (2.2) for maintaining you dependencies, you may also want to retrieve source codes (or javadocs) of those dependencies, e.g. to get nice help pop-ups in Eclipse or to actually browse the sources. Provided thatContinue reading “Ivy: How to Retrieve Source Codes of Dependencies”

Ivy resolve downloads but ignores some artifacts (though not modules)

I’ve had a strange issue with Apache Ivy‘s resolve task – it resolved and downloaded all my dependencies but didn’t put some of them to the classpath (via ivy:cachepath) and certainly wouldn’t copy them either (via ivy:retrieve). An indicia was that in the resolve report the number of “artifacts” was zero while the number ofContinue reading “Ivy resolve downloads but ignores some artifacts (though not modules)”