Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-460

Configure eclipse to use same source/target version as configured in maven-compiler-plugin.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lhunath Maarten Billemont
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: