title: Maven cannot find dependencies from remote nexus repository
body: <p>I had to migrate from a older Nexus server to Nexus OSS v2.0.4 today. I have been facing strange issues from the morning. Firstly I installed nexus and started it, and I was able to browse it from the server machine only once and then no more. But later from all other machines in the network I could access the server (using <a href="http://remote.hostname:8081/nexus" rel="nofollow">http://remote.hostname:8081/nexus</a> ).</p>
  
  <p>Then I copied all the contents of the storage directory from the old server machine and pasted them one by one into the new machine. (For every repository, created a repository in the new server and gave the <code>local storage Location</code> as the directory which i copied from the old server). Now I am able to see all the jars which I had, but when I try to use them from maven, I am not able to do so. Meaning, if i try to run a maven project, then it says dependencies not found. I can see that it is looking for jar exactly in the place where it lies in the new server, but fails to download it. Any idea why it is not able to download the jars?</p>
  
  <p>Also I am still not able to access the new nexus server from the server machine's browser, why is it so? Any suggestions will be appreciated. Thanks.</p>
  
  <p>====UPDATE====</p>
  
  <p>When I fiddled around with maven, I found that I am able to access the dependencies from public repository, but not from one specific repository (only one so far I am aware of). Can this be because of some reason? I suspect some wrong matter of migration, is it the proper way of migrating from one server to another?</p>
  
  <p>Also, all the proxy repositories are having the status as <code>In service-Remote automatically blocked and unavailable</code>. Is this related to my problem somehow?</p>
  
  <p>===Settings.xml===</p>
  
  <pre><code>&lt;settings&gt;
  
    &lt;localRepository&gt;${env.TEST_HOME}\maven.repository&lt;/localRepository&gt;
  
  &lt;proxies&gt;
  &lt;proxy&gt;
    &lt;id&gt;Compproxy&lt;/id&gt;
    &lt;active&gt;true&lt;/active&gt;
    &lt;protocol&gt;http&lt;/protocol&gt;
    &lt;username&gt;&lt;/username&gt;
    &lt;password&gt;&lt;/password&gt;
    &lt;host&gt;proxy.abc.com&lt;/host&gt;
    &lt;port&gt;81&lt;/port&gt;
    &lt;nonProxyHosts&gt;*.abc.com|rick*&lt;/nonProxyHosts&gt;
  &lt;/proxy&gt;
  &lt;/proxies&gt;
      &lt;servers&gt;
  &lt;server&gt;
      &lt;id&gt;MyRep&lt;/id&gt;
    &lt;username&gt;admin&lt;/username&gt;
    &lt;password&gt;admin123&lt;/password&gt;
  &lt;/server&gt;
  &lt;/servers&gt;
  &lt;mirrors&gt;
  &lt;mirror&gt;
    &lt;id&gt;central mirror&lt;/id&gt;
    &lt;url&gt;http://rick1.abc.com:8081/nexus/content/groups/public&lt;/url&gt;
    &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
   &lt;/mirror&gt;
   &lt;mirror&gt;
    &lt;id&gt;opensymphony mirror&lt;/id&gt;
    &lt;url&gt;http://rick1.abc.com:8081/nexus/content/groups/public&lt;/url&gt;
    &lt;mirrorOf&gt;opensymphony&lt;/mirrorOf&gt;
  &lt;/mirror&gt;
  &lt;/mirrors&gt;
  &lt;profiles&gt;
  &lt;profile&gt;
    &lt;id&gt;actProf&lt;/id&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;public&lt;/id&gt;
          &lt;url&gt;http://rick1:8081/nexus/content/groups/public&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;MyRep&lt;/id&gt;
          &lt;url&gt;http://rick1:8081/nexus/content/repositories/MyRep&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
    &lt;properties&gt;
    &lt;/properties&gt;        
  &lt;/profile&gt;
  &lt;/profiles&gt;
  &lt;activeProfiles&gt;
  &lt;activeProfile&gt;actProf&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>===pom.xml===</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.abc.test&lt;/groupId&gt;
    &lt;artifactId&gt;testgui_start&lt;/artifactId&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;version&gt;1&lt;/version&gt;
    &lt;name&gt;Start POM Test GUI&lt;/name&gt;
    &lt;url&gt;www.abc.com&lt;/url&gt;
    &lt;build&gt;
  &lt;plugins&gt;
  &lt;/plugins&gt;
  &lt;/build&gt;
    &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;com.abc.test&lt;/groupId&gt;
      &lt;artifactId&gt;testgui&lt;/artifactId&gt;
      &lt;version&gt;${version}&lt;/version&gt;
      &lt;scope&gt;runtime&lt;/scope&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>