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.
Best regards,
PJ
From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx]
On Behalf Of King Holger (CI/AFP2)
Sent: 13 March 2013 18:10
To: m2e-users@xxxxxxxxxxx
Subject: [m2e-users] m2e creates invalid Eclipse compiler project settings
-
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?