title: How to download artifacts from ivy repository using maven
body: <p>We are moving from ivy to maven. We have lots of artifacts in artifactory which were published using ivy and hence the artifact folder/path structure is similar to </p>
  
  <ol>
  <li><p><code>artifactory/libs-release/[organization]/[module]/[revision]/[type]s/[module](-[classifier]).[ext]</code></p></li>
  <li><p><code>artifactory/libs-release/[organization]/[module]/[revision]/[type]s/ivy.xml</code> </p></li>
  </ol>
  
  <p>However, when we add the dependency in maven pom.xml , the dependency name will be something like <code>com.abc.xyz</code>. But maven tries to look into the path <code>com/abc/xyz/</code> folder whereas we have the artifact in artifactory in <code>com.abc.xyz/my-artifact/1.0.0/jars/my-artifact.jar</code> </p>
  
  <p>How can I tell maven (pom.xml) to read and understand the path which is in artifactory.</p>
  
  <p>I tried using ivy-maven-plugin but it gives classNotFound error for some groovy class even though I have required groovy jars in my local m2 repository folder.</p>
  
  <p><strong>* Answer</strong>
  ok, here is what we did. We created folders manually and then we are now using makepom plugin to convert ivy.xml to maven pom.xml
  Thank you to all your suggestions and more are welcome. </p>