title: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0:compile
body: <p>I am working on Spring MVC [google app engine]. My project is built on 1.6 Java SDK previously now I wanted to switch to Java SDK 1.7.</p>
  
  <p>I have made all changes for updating to JAVA 1.7 SDK.</p>
  
  <p>I have made changes in pom.xml File [I have commented old 1.6 SDK code]</p>
  
  <pre class="lang-xml prettyprint-override"><code>&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.0&lt;/version&gt;
    &lt;configuration&gt;
  &lt;!--&lt;executable&gt;C:/Program Files/Java/jdk1.6.0/bin/javac&lt;/executable&gt; --&gt;
  &lt;!--&lt;source&gt;1.6&lt;/source&gt; --&gt;
  &lt;!--&lt;target&gt;1.6&lt;/target&gt; --&gt;
      &lt;executable&gt;C:/Program Files/Java/jdk1.7.0_45/bin/javac&lt;/executable&gt;
      &lt;source&gt;1.7&lt;/source&gt;
      &lt;target&gt;1.7&lt;/target&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But when using Maven install command I am getting exception as </p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0:compile
  
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0:compile (default-compile) on project: Compilation failure
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
      at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:429)
      at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 19 more
  </code></pre>
  
  <p>Any help on this please. My environment:</p>
  
  <pre class="lang-none prettyprint-override"><code>Apache Maven 3.0.2 (r1056850; 2011-01-09 06:28:10+0530) 
  Java version: 1.7.0_45, vendor: Oracle Corporation 
  Java home: C:\Program Files\Java\jdk1.7.0_45\jre 
  Default locale: en_US, platform encoding: Cp1252 
  OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
  </code></pre>