title: mvn Deployment failed: repository element was not specified in the POM
body: <p>When I run mvn clean deploy on my project I get an error</p>
  
  <p>Also my project in eclipse displays the following errors which I don't know if they are related to my current problem.</p>
  
  <p>Project configuration not up-to-date with pom.xml
  plugin configuration not covered by lifecycle configuration</p>
  
  <p>In addition my eclipse doesn't seems to compile the files correctly. My SpringBoot java files aren't being compiled as java files. I can tell because if I deliberately induce syntax errors, there isn't a compilation error. This is all run on eclipse EE and is part of a maven project so I don't even know if a source folder is needed.</p>
  
  <p>Also I'm displaying my main pom.xml file below and it has compilation errors on  "pom" and both "&amp;ndash"</p>
  
  <p>I've tried the following solutions</p>
  
  <p><a href="https://stackoverflow.com/questions/17418630/eclipse-blue-maven-project-configuration-is-not-up-to-date-with-pom-xml">Eclipse Blue, Maven: Project configuration is not up-to-date with pom.xml</a></p>
  
  <p><a href="https://stackoverflow.com/questions/12742467/failed-to-resolve-version-for-org-apache-maven-archetypes">Failed to resolve version for org.apache.maven.archetypes</a></p>
  
  <p><a href="https://stackoverflow.com/questions/27153024/repository-element-was-not-specified-in-the-pom-inside-distributionmanagement-el">repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter</a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.fanniemae.dfc&lt;/groupId&gt;
  &lt;artifactId&gt;dfc_app&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;modules&gt;
      &lt;module&gt;dfc_angular&lt;/module&gt;
      &lt;module&gt;dfc_springBoot&lt;/module&gt;
  &lt;/modules&gt;
  
  &lt;!--&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.5.3RELEASE&lt;/version&gt;
      &lt;relativePath/&gt; &amp;lt;!&amp;ndash; lookup parent from repository 
  &amp;ndash;&amp;gt;
  &lt;/parent&gt;--&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project dfc_app: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter</p>