title: Maven can't find dependencies [dependencyResolutionException]
body: <p>I added a Maven dependency to my project and my project compiles locally, while it doesn't compile on server. It can not resolve the newly added dependency.  </p>
  
  <p>This is my pom.xml file: </p>
  
  <pre><code>    &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;rep&lt;/id&gt;
              &lt;name&gt;Repository&lt;/name&gt;
              &lt;url&gt;http://artifacts.com/rep&lt;/url&gt;
              &lt;releases&gt;
                 &lt;enabled&gt;true&lt;/enabled&gt;
                 &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/releases&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.project.rest&lt;/groupId&gt;
              &lt;artifactId&gt;common&lt;/artifactId&gt;
              &lt;version&gt;2.0.5&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>And this my console output with an error:</p>
  
  <pre><code> Downloading: http://artifacts.com/rep/com/project/rest/common/2.0.5/common-2.0.5.pom
      [WARNING] The POM for com.project.rest:common:jar:2.0.5 is missing, no dependency information available
  
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6.154s
      [INFO] Finished at: Tue Feb 03 06:58:35 BRT 2015
      [INFO] Final Memory: 9M/152M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project server: Could not resolve dependencies for project org.server:
      server:jar:2.5.1-SNAPSHOT: The following artifacts could not be resolved: com.project.rest:common:jar:2.0.5:
      Could not find artifact com.project.rest:common:jar:2.0.5 in rep (http://artifacts.com/rep) -&gt; [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
  </code></pre>
  
  <p><em>(I hid all real URLs and package.)</em></p>
  
  <p>What could be the problem? </p>