On Fri, Jul 27, 2012 at 7:57 AM, Barrie Treloar <baerr...@gmail.com> wrote:
> On Fri, Jul 27, 2012 at 7:13 AM, Wayne Fay <wayne...@gmail.com> wrote:
>>> Long story short, I tried to modify eclipse project generation so that
>>> in the .settings/org.eclipse.jdt.core.prefs instead of this:
>>>     org.eclipse.jdt.core.compiler.compliance=1.5
>>> I get this (look at the compliance):
>>>     org.eclipse.jdt.core.compiler.compliance=1.6
>>> but didn't find a way to configure maven-eclipse-plugin.
>>
>> Most likely you are the first person to want this specific
>> configuration of the plugin, thus it does not currently exist. You'll
>> probably need to scratch your own itch.
>>
>> Pull down the source code for maven-eclipse-plugin, tweak it somehow
>> to add this feature, and contribute the code back for (possible)
>> inclusion in a future release.
>>
>> Here's a hint: you're going to want to adjust EclipseSettingsWriter
>> and probably some Eclipse plugin Mojo code too since this should be an
>> extra configuration item in the plugin...
>> http://maven.apache.org/plugins/maven-eclipse-plugin/xref/org/apache/maven/plugin/eclipse/writers/workspace/EclipseSettingsWriter.html
>
> Also remember, that the maven-eclipse-plugin reads the configuration
> of the maven-compiler-plugin.
> See 
> http://maven.apache.org/plugins/maven-eclipse-plugin/trouble-shooting/jdk-being-used-is-different-than-expected.html
>
> So you ideally need to configure that the way you want.
> I'm not sure what
> org.eclipse.jdt.core.compiler.compliance=1.6
> actually does.
> Is this equivalent to
>
> <plugin>
>    <artifactId>maven-compiler-plugin</artifactId>
>    <version>2.0.2</version>
>    <configuration>
>        <source>1.5</source>
>        <target>1.6</target>
>    </configuration>
> </plugin>

Alternatively, you can fix your problem with the overrides and mark it
as something to worry about manually.
The time invested to fix this automatically may not be worth the effort.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to