title: How to set URL for Maven dependency
body: <p>I have the following error after launch <code>mvn clean install vagrant:up</code>:</p>
  
  <pre><code>Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/apache/avalon/framework/avalon-framework-api/4.2.0/avalon-framework-api-4.2.0.pom
  [INFO] Unable to find resource 'org.apache.avalon.framework:avalon-framework-api:pom:4.2.0' in repository snapshot-repository (https://oss.sonatype.org/content/repositories/snapshots)
  Downloading: http://central.maven.org/maven2/org/apache/avalon/framework/avalon-framework-api/4.2.0/avalon-framework-api-4.2.0.pom
  [INFO] Unable to find resource 'org.apache.avalon.framework:avalon-framework-api:pom:4.2.0' in repository Avalon-repo (http://central.maven.org/maven2)
  Downloading: http://repo1.maven.org/maven2/org/apache/avalon/framework/avalon-framework-api/4.2.0/avalon-framework-api-4.2.0.pom
  [INFO] Unable to find resource 'org.apache.avalon.framework:avalon-framework-api:pom:4.2.0' in repository central (http://repo1.maven.org/maven2)
  Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/apache/avalon/framework/avalon-framework-impl/4.2.0/avalon-framework-impl-4.2.0.pom
  [INFO] Unable to find resource 'org.apache.avalon.framework:avalon-framework-impl:pom:4.2.0' in repository snapshot-repository (https://oss.sonatype.org/content/repositories/snapshots)
  Downloading: http://central.maven.org/maven2/org/apache/avalon/framework/avalon-framework-impl/4.2.0/avalon-framework-impl-4.2.0.pom
  [INFO] Unable to find resource 'org.apache.avalon.framework:avalon-framework-impl:pom:4.2.0' in repository Avalon-repo (http://central.maven.org/maven2)
  Downloading: http://repo1.maven.org/maven2/org/apache/avalon/framework/avalon-framework-impl/4.2.0/avalon-framework-impl-4.2.0.pom
  [INFO] Unable to find resource 'org.apache.avalon.framework:avalon-framework-impl:pom:4.2.0' in repository central (http://repo1.maven.org/maven2)
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Failed to resolve artifact.
  
  Unable to get dependency information: Error in metadata for artifact 'rubygems:vagrant:gem': Unable to parse version '[0.5.2,0.5.2.0.0.0.0.1)' for dependency 'rubygems:archive-tar-minitar:gem': Range defies version ordering: [0.5.2,0.5.2.0.0.0.0.1)
    rubygems:vagrant:gem:1.0.7
  
  from the specified remote repositories:
    central (http://repo1.maven.org/maven2),
    rubygems (http://rubygems-proxy.torquebox.org/releases),
    snapshot-repository (https://oss.sonatype.org/content/repositories/snapshots),
    Avalon-repo (http://central.maven.org/maven2)
  
  Path to dependency: 
      1) downloader:downloader:jar:0.0.1-SNAPSHOT
      2) net.ju-n.maven.plugins:vagrant-maven-plugin:maven-plugin:1.0.1
  </code></pre>
  
  <p>I have searched this dependency and I found it in another URL, but I don't know how to set it. I don't want to download the jar manually, because we are using Jenkins and I don't have access to that repository.</p>
  
  <p>Anyone knows how to solve it?</p>
  
  <p>Thanks!!</p>
  
  <p>P.S. My <code>pom.xml</code> is (partial):</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;net.ju-n.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;vagrant-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.0.1&lt;/version&gt;
    &lt;type&gt;maven-plugin&lt;/type&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;de.saumya.mojo&lt;/groupId&gt;
    &lt;artifactId&gt;gem-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.0.7&lt;/version&gt;
  &lt;/dependency&gt;   
  &lt;dependency&gt;
    &lt;groupId&gt;avalon-framework&lt;/groupId&gt;
    &lt;artifactId&gt;avalon-framework-impl&lt;/artifactId&gt;
    &lt;version&gt;4.2.0&lt;/version&gt;
    &lt;optional&gt;true&lt;/optional&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Update1:</strong> I have the following repositories in my pom.xml:</p>
  
  <pre><code>&lt;repositories&gt;      
      &lt;repository&gt;
          &lt;id&gt;snapshot-repository&lt;/id&gt;
          &lt;name&gt;Maven2 Snapshot Repository&lt;/name&gt;
          &lt;url&gt;https://oss.sonatype.org/content/repositories/snapshots&lt;/url&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;daily&lt;/updatePolicy&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
  
      &lt;repository&gt;
        &lt;id&gt;Avalon-repo&lt;/id&gt;
        &lt;url&gt;http://central.maven.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
  </code></pre>
  
  <p><strong>Update2:</strong> The problem that Maven is looking for the dependency in <a href="http://repo1.maven.org/maven2/org/apache/avalon/framework/avalon-framework-impl/4.2.0/avalon-framework-impl-4.2.0.pom" rel="nofollow">http://repo1.maven.org/maven2/org/apache/avalon/framework/avalon-framework-impl/4.2.0/avalon-framework-impl-4.2.0.pom</a>, but the correct URL is: <a href="https://repo1.maven.org/maven2/avalon-framework/avalon-framework-api/4.2.0/avalon-framework-api-4.2.0.pom" rel="nofollow">https://repo1.maven.org/maven2/avalon-framework/avalon-framework-api/4.2.0/avalon-framework-api-4.2.0.pom</a></p>