title: How do I find the latest version of an artifact from a maven repository
body: <p>As part of an automated deployment I need a script to download the latest version of an artifact from our internal repository.</p>
  
  <p>Ideally this script will be with ant or a unix shell script.</p>
  
  <p>So for example:</p>
  
  <p>I have myArtifact.war and it has versions 1.0 , 1.1 and 2.0 - I need the script given the correct group id and artifact id to retrieve version 2.0 from our maven repository (currently using artifactory).</p>
  
  <p>Is there any easy way to do this?</p>