title: repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter
body: <p>I'm having a problem while deploying and here is the error message I get:</p>
  
  <pre class="lang-none prettyprint-override"><code>[INFO]
  [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ core ---
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3.296 s
  [INFO] Finished at: 2014-11-26T17:05:00+02:00
  [INFO] Final Memory: 13M/244M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
  deploy (default-deploy) on project core: Deployment failed: repository element w
  as not specified in the POM inside distributionManagement element or in -DaltDep
  loymentRepository=id::layout::url parameter -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  ch.
  [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 rea
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
  xception
  </code></pre>
  
  <p>I checked some resources on the internet and none of them worked for my case. I think it's related to my <code>pom.xml</code>, so here are its related parts:</p>
  
  <pre><code>&lt;build&gt;
          &lt;plugins&gt;
                &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.3.2&lt;/version&gt;
                      &lt;configuration&gt;
                           &lt;source&gt;1.7&lt;/source&gt;
                           &lt;target&gt;1.7&lt;/target&gt;
                      &lt;/configuration&gt;
                &lt;/plugin&gt;
          &lt;/plugins&gt;
    &lt;/build&gt;
  
    &lt;repositories&gt;
          &lt;repository&gt;
                &lt;id&gt;repository.springframework.maven.release&lt;/id&gt;
                &lt;name&gt;Spring Framework Maven Release Repository&lt;/name&gt;
                &lt;url&gt;http://maven.springframework.org/release&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
                &lt;id&gt;Appid&lt;/id&gt;
                &lt;name&gt;AppName&lt;/name&gt;
                &lt;url&gt;http://IPaddress/nexus/content/repositories/Myapps/&lt;/url&gt;
          &lt;/repository&gt;
    &lt;/repositories&gt;
  </code></pre>
  
  <p>What do you think the problem might be? Thanks in advance.</p>