[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] Compiler version weirdness
|
David,
starting from version 2.3.2, maven-compiler-plugin defaults to source 1.5. This is the version defined by default in maven 3.0 final, previous versions used source = 1.4.
In order for m2eclipse to configure java source compiler to 1.5 by default, you need to either lock the maven-compiler-plugin version in your pom (highly advised) :
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
</plugin>
...
</plugins>
</build>
or you can pick an m2eclipse-core plugin based on maven 3.0 (0.12.0 has been staged here [1]). However, due to an incompatibility between core 0.12.0 and current m2e-wtp 0.11.0, you'd better wait for a fix in the next few days before upgrading.
[1]
https://repository.sonatype.org/content/repositories/forge-sites/m2e/0.12.0/S/0.12.0.20101102-1505/
[2]
https://issues.sonatype.org/browse/MNGECLIPSE-2483
regards,
Fred Bricon
--
"Have you tried turning it off and on again" - The IT Crowd