Is there a maven plugin which i can use to convert the maven pom dependencies including transitive dependencies to an ivy.xml file?
With no specific settings, Ivy uses the maven 2 repository to resolve the dependencies you declare in an Ivy file.
Here's an Ant script
<project name="convertPomToIvy" basedir="." default="all"
xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
xmlns:ac="antlib:net.sf.antcontrib">
<path id="antlib.classpath">
<fileset dir="/path/to/ivy/libs" includes="*.jar"/>
</path>
<taskdef uri="antlib:fr.jayasoft.ivy.ant"
resource="fr/jayasoft/ivy/ant/antlib.xml"
classpathref="antlib.classpath"
loaderref="antlib.classpath.loader"/>
<target name="convert">
<ivy:convertpom pomFile="pom.xml" ivyFile="ivy.xml" />
</target>
</project>
From here or here (& probably elsewhere)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With