How to publish artifacts to Artifactory with different names? <p>i am using Apache Ant with Ivy to publish artifacts to Artifactory-Server. The way i do this is to generate a pom-File from ivy.xml. However with different names for modules and artifacts. If i retrieve the artifacts from server only the artifacts with the same names are downloaded.</p> <p>ivy.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"&gt; &lt;info organisation="com.ibm" module="db2_driver" revision="4.19.26"/&gt; &lt;publications&gt; &lt;artifact name="db2jcc4_license_cisuz" type="jar" conf="default" ext="jar" /&gt; &lt;artifact name="db2jcc4" type="jar" conf="default" ext="jar" /&gt; &lt;artifact name="db2_driver" type="pom" conf="default" ext="pom" /&gt; &lt;/publications&gt; &lt;/ivy-module&gt; </code></pre> <p>build.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project name="IVY_TEST" default="ivypom" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant"&gt; &lt;property file="build.properties" /&gt; &lt;!- defines ${artifact.path} --&gt; &lt;target name="ivypom" &gt; &lt;ivy:makepom ivyfile="${artifact.path}/ivy.xml" pomfile="${artifact.path}/db2_driver.pom" &gt; &lt;mapping conf="*" scope="*" /&gt; &lt;/ivy:makepom&gt; &lt;ivy:publish resolver="main" module="[ivy.module]" revision="4.19.26" organisation="[ivy.organisation]" overwrite="true"&gt; &lt;artifacts pattern="${artifact.path}/[artifact].[ext]" /&gt; &lt;/ivy:publish&gt; &lt;/target&gt; &lt;/project&gt; </code></pre> <p>The Upload is succesfully...</p> <p>That's the result (Artifactory Browser):</p> <pre><code>- db2_driver - 4.14.22 - 4.19.26 - db2_driver-4.19.26.pom - db2jcc4-4.19.26.jar - db2jcc4_license_cisuz-4.19.26.jar - ivy-4.19.26.xml </code></pre> <p>generated pom-File:</p> <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.ibm&lt;/groupId&gt; &lt;artifactId&gt;db2_driver&lt;/artifactId&gt; &lt;packaging&gt;pom&lt;/packaging&gt; &lt;version&gt;4.19.26&lt;/version&gt; </code></pre> <p>Now I want to use the driver. </p> <p>The needed ivy.xml for the application:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"&gt; &lt;info organisation="de.xxx" module="main_steuerprogramm" revision="1.0.0"/&gt; &lt;configurations&gt; &lt;conf name="default" description="Standard Konfiguration" /&gt; &lt;/configurations&gt; &lt;dependencies&gt; &lt;dependency org="com.ibm" name="db2_driver" rev="4.19.26"/&gt; &lt;/dependencies&gt; &lt;/ivy-module&gt; </code></pre> <p>But it don't work. How can I retrieve the jars?</p> <p>There are three good answers... </p> <ul> <li><p><a href="http://stackoverflow.com/questions/9426011/convert-ivy-xml-to-pom-xml/9429286#9429286">Convert ivy.xml to pom.xml</a></p></li> <li><p><a href="http://stackoverflow.com/questions/5111831/how-to-publish-3rdparty-artifacts-with-ivy-and-nexus/5115447#5115447">how to publish 3rdparty artifacts with ivy and nexus</a></p></li> <li><p><a href="http://stackoverflow.com/questions/6942989/ivy-cant-download-because-pom-file-and-the-jar-file-name-arent-matching-patt/6949758#6949758">Ivy - Can&#39;t download because POM file and the JAR file name aren&#39;t matching patterns</a></p></li> </ul> <p>But in my case the name of the artifacts are different to module name. That's the difficulty.</p> <p>Please help.</p>