title: Maven - repositories tag preventing deployment
body: <p>I have a project POM which specifies a repositories tag which points to a sandbox location.</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;mysandbox&lt;/id&gt;
          &lt;name&gt;Sandbox&lt;/name&gt;
          &lt;url&gt;http://myTestingSite.com/repositories/sandbox/&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p>This works fine in Eclipse and resolves all dependencies however when i attempt to deploy i get the following exception.</p>
  
  <pre><code>   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-depl
      oy) on project myweb-web: Deployment failed: repository element was not specified in the POM insid
      e distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -&gt; [Help
      1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plug
      ins:maven-deploy-plugin:2.5:deploy (default-deploy) on project myweb-web: Deployment failed: repos
      itory element was not specified in the POM inside distributionManagement element or in -DaltDeployme
      ntRepository=id::layout::url parameter
  </code></pre>
  
  <p>Wrapping this in a Distributionmanagement element doesn't make any sense because I'm using the repository for dependency resolution and not deployment. </p>