Hi,
just an suggestion for a potential fix to
http://jira.codehaus.org/browse/MCOMPILER-80

as maven 2.0.9 fixes the plugin version in super POM, we can consider that
- if maven 2.0.9 + is detected - any version of maven compiler > 2.0.2 (the
one set in super-pom) has been set by the user. In such case, a 2.0.3
version of the plugin cannot be there because of the LATEST rule and can
break full backward compatility (according this is well documented in the
release note and plugin documentation).

So my idea would be to (pseudo-code) :

if ( mavenSession.getVersion() > 2.0.9 && source == null)
{
    source = 1.5;
}
if ( mavenSession.getVersion() > 2.0.9 && target == null)
{
    target = 1.5;
}

For the same reason compiler 2.0.4 could default to 1.6 and so on.

What's your opinion ?

Nicolas

Reply via email to