[since 1.4]

The artifactreport task generates an XML report of all artifact dependencies resolved by the last resolve task call during the same build.

(since 2.0) This is a post resolve task, with all the behaviour and attributes common to all post resolve tasks.

This report is different from the standard report which reports all modules and artifacts, while this report is much simpler and focuses only on artifacts, and gives more information on artifacts, such as the original location and the retrieve location.

It is thus easy to use to generate things like a classpath file for an IDE.

See this article by Johan Stuyts (who contributed this task) to see how he uses this task.

Here is an example of generated file:

<?xml version="1.0" encoding="UTF-8"?>
  <module organisation="hippo" name="sant-classes" rev="1.01.00b04-dev" status="integration">
    <artifact name="sant-classes-src" ext="zip" type="zip">
      <origin-location is-local="true">
    <artifact name="sant-classes-unoptimized" ext="jar" type="jar">
      <origin-location is-local="true">
  <module organisation="testng" name="testng" rev="4.6.1-jdk15" status="release">
    <artifact name="testng" ext="jar" type="jar">
      <origin-location is-local="false"></origin-location>


Attribute Description Required


the file to which the report should be written



the retrieve pattern to use for adding the retrieve location information about the artifacts

No. Defaults to ${ivy.retrieve.pattern}.


a comma separated list of the configurations to use to generate the report

No. Defaults to the configurations resolved by the last resolve call


true to halt the build on Ivy failure, false to continue

No. Defaults to true


A reference to Ivy settings that must be used by this task (since 2.0)

No, ivy.instance is taken by default.


<ivy:artifactreport tofile="${basedir}/path/to/myreport.xml"/>

Generates the artifact report for all configurations resolved during the last resolve call (in the same build).

<ivy:artifactreport tofile="${basedir}/path/to/myreport.xml" conf="default"/>

Generates the artifact report for only the default configuration resolved during the last resolve call.