artifactreport> may help.
Use the delivery task to create ivy.xml with dynamic version constraints replaced by the static version constraint (ie [2.0.3.0 [becomes 2.2.1):
<ivy:deliver conf="*(public)" deliverpattern="${dist.dir}/ivy.xml"/>
Then use the permission task for this file to prepare for artifactreport.
<ivy:resolve file="${dist.dir}/ivy.xml" conf="*(public)" refresh="true" type="ivy" />
Finally, artifactreport will perform a temporary resolution of dependencies.
<ivy:artifactreport tofile="${dist.dir}/artifactreport.xml" />
artifactreport.xml will look like
<modules> <module organisation="com.googlecode.flyway" name="flyway" rev="1.7" status="release"/> <module organisation="org.postgresql" name="postgresql-jdbc" rev="9.0" status="release"/> <module organisation="org.hibernate" name="hibernate" rev="3.3.2" status="release"/> <module organisation="org.apache.commons" name="commons-daemon" rev="1.0.2" status="release"/> ...
Use XSLT to create the ivy.xml form.
source share