Configure eclipse to use same source/target version as configured in
maven-compiler-plugin.
-------------------------------------------------------------------------------------------
Key: MECLIPSE-460
URL: http://jira.codehaus.org/browse/MECLIPSE-460
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: Core : Workspace settings
Reporter: Maarten Billemont
With a configuration like this:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.3</source>
<target>1.3</target>
The following should be written to ".settings/org.eclipse.jdt.core.prefs":
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.3
org.eclipse.jdt.core.compiler.source=1.3
org.eclipse.jdt.core.compiler.compliance=1.3
We are working with a multi-module project where certain modules have a
non-default source/target version because they are applets and need to be
compatible with JSE 1.3. Without the above; these projects cause a mass of
warnings in our eclipse workspace which shouldn't be there.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira