Ooops, you’re correct!
I’ve got 2 suggestions:
-         
To find out where the problem lies, what about building your project outside of Eclipse, just using Maven?
-         
What about only specifying either nothing or only source, since you seem to be wanting the default behaviour?
 
 
From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx]
On Behalf Of King Holger (CI/AFP2)
Sent: 14 March 2013 17:48
To: Maven Integration for Eclipse users mailing list
Subject: Re: [m2e-users] m2e creates invalid Eclipse compiler project settings
 
 
 
Hi Pierre-Jean,
 
>Hi,
>That is unrelated to m2e or Eclipse. This is a Java constraint. You will find the meaning of those flags here:
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html. It >should make it clear why the combination you are using is not valid.
 
to my understanding, the combination I use for source and target is valid. Your link shows that below the following chapters:
Cross-Compilation Options, saying: “If -source is 1.6, the value of -target is 1.7”
 
Am I wrong?
 
>Best regards,
>PJ
 
 
- 
Eclipse Juno Service Release 2
- 
m2e plugin version 1.3.1.20130219-1424
with the following Maven „pom.xml“:
 
<groupId>org.apache.maven.plugins</groupId>
 
<artifactId>maven-compiler-plugin</artifactId>
 
<!-- used by "m2e" Eclipse
plugin to update the 
 
     "Source compatibility level" and "Compiler compliance
 
            level" within the Eclipse project "Java compiler"
 
            settings when running "Maven" -> "Update project". -->
 
       
<!-- used by "m2e" Eclipse plugin to update the 
 
            "Generated .class files compatibility" within the
 
            Eclipse project "Java compiler"
 
            settings when running "Maven" -> "Update project".
 
            It also changes the "JRE System Library" version within
 
            the "Java Build Path" Eclipse project settings. -->
 
       
<compilerArgument>-Xlint:all</compilerArgument>
 
       
<showWarnings>true</showWarnings>
 
       
<showDeprecation>true</showDeprecation>
 
- 
when updating the Eclipse project configuration using m2e based on the “pom.xml” (Maven -> Update project -> Update project configuration from pom.xml), I get an invalid Eclipse “Java compiler”
 configuration setting for this project, as Eclipse tells me “Classfile compatibility must be equal or less than compliance level”
- 
the “maven-compiler-plugin” setting for <target> is not used to set the “Compiler compliance level”. So, it differs compared to the setting “Generated .class files compatibility”.
- 
m2e does ignore a potential available setting “<compilerVersion>1.7</compilerVersion>”
Is it a real bug or is there a solution available?