title: Maven "build path specifies execution environment J2SE-1.5", even though I changed it to 1.7
body: <p>In Eclipse Juno, I installed the latest m2e plugin (1.2.20120903-1050).  In preferences, I have added jdk1.7.0_11 in Java -> Installed JREs -> Add, and then specified the location (<code>C:\Program Files\Java\jdk1.7.0_11</code>).  When I create a new Maven project and run it, I get a warning:</p>
  
  <blockquote>
    <p>Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.</p>
  </blockquote>
  
  <p>I am not sure how to resolve this.</p>
  
  <p>I believe it is a Maven problem because I do not have this error when I run normal Java projects.  I read <a href="http://mikechencodingnotes.blogspot.com/2011/11/m2e-compiler-j2se-15-warning-message.html" rel="noreferrer">here</a> that I should change the "maven-compiler-plugin.pom" and change the source and target from 1.5 to something more appropriate.  In my case, 1.7.  I have done this, but I still get the warning.</p>