title: Updating the pom.xml with Eclipse
body: <p>Using Eclipse with the m2eclipse plug-in, how do I update the pom.xml, so the “Maven->Update Project” won’t reset the project configuration back to Java 1.5?
  I am using Eclipse Kepler 4.3, Java 7, and the m2eclipse plug-in.
  I create a new Maven project with “Create a simple project (skip archetype selection)” checked and the artifactId “test”. I get the following warning.</p>
  
  <p>Description Resource    Path    Location    Type
  Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.   test        Build path  JRE System Library Problem</p>
  
  <p>I use the following steps the change the compiler from 1.5 to 1.7.
  1.  On the project, do right-click “Properties” and select the “Java build path”.
  2.  Go to the “Libraries” tab.
  3.  Remove the old JRE System Library [JavaSE-1.5].
  4.  Click “Add Library…”, select “JRE System Library”, and click “Next>”.
  5.  Check “Execution environment” radio button and select “JavaSE 1.7 …” from the adjoining menu.
  6.  Click “Finish”
  7.  Click “OK”.</p>
  
  <p>The warning disappears.</p>
  
  <p>I right-click the project and select “Maven->Update Project”. I click “OK”.</p>
  
  <p>The warning message returns.</p>
  
  <p>My understanding is the plugin uses the pom.xml to update Eclipse’s current settings. How do I update the pom.xml, so the “Maven->Update Project” won’t reset the project configuration back to Java 1.5?</p>
  
  <p>I looked at these pages, but I think the answers are obsolete.
  <a href="https://stackoverflow.com/questions/3138384/java-warning-build-path-specifies-execution-environment-j2se-1-4">Warning - Build path specifies execution environment J2SE-1.4</a>
  <a href="https://stackoverflow.com/questions/3539139/what-causes-a-new-maven-project-in-eclipse-to-use-java-1-5-instead-of-java-1-6-b">What causes a new Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn&#39;t?</a>
  <a href="https://stackoverflow.com/questions/14808529/maven-does-not-compile-in-java-1-6">maven does not compile in java 1.6</a></p>
  
  <p>For example, adding …</p>
  
  <p><code>&lt;configuration&gt;
      &lt;source&gt;1.7&lt;/source&gt;
      &lt;target&gt;1.7&lt;/target&gt;
    &lt;/configuration&gt;</code></p>
  
  <p>… after the version section in the POM doesn’t fix the problem.</p>