title: Maven deploy plugin doesn't see my repository inside distributionManagement in pom.xml
body: <p>I tried to deploy into my remote repository (Nexus) with the command <code>mvn deploy</code> on command line. By doing this I got the following error:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project pro-tools-maven-plugin: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -&gt; [Help 1]
  </code></pre>
  
  <p>I specified my repositories inside <code>distributionManagement</code> in the <code>pom.xml</code>. Username and password are stored in <code>settings.xml</code>.</p>
  
  <p><strong>Snippet of <code>pom.xml</code>:</strong></p>
  
  <pre><code>&lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;thirdparty&lt;/id&gt;
          &lt;name&gt;3rd Party (Releases)&lt;/name&gt;
          &lt;url&gt;http://bla.net:11000/nexus/content/repositories/thirdparty&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;thirdparty_snapshots&lt;/id&gt;
          &lt;name&gt;3rd Party (Snapshots)&lt;/name&gt;
          &lt;url&gt;http://bla.net:11000/nexus/content/repositories/thirdparty_snapshots&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  </code></pre>
  
  <p>What could be the problem?</p>