Converting maven pom to ivy
Without making any comments about metadata formats or simplicity vs complexity of dependency defintions… Here is how you can convert a maven pom into an ivy.xml if required. Just create a very basic ant file and execute it:
<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>
One would hope there was an ordinary command line for this.
Thanks to Nicolas for pointing me to this!