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

Allow eclipse plugin to take compiler versions from maven.compiler.source/target properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.8
    • None
    • Core : .project
    • None
    • Patch

    Description

      I'd like that the maven eclipse plugin could detect the source and target compiler versions from the properties maven.compiler.source and maven.compiler.target in addition to the explicit declaration given in the compiler plugin configuration.

      I submit a patch that seems to fix the issue (though I did not attached any junit test).

      The patch proceeds like this:

      • first, it checks the usual <source> and <target> configurations.
      • if either is not found, it try to get the configuration from the maven.compiler.source and maven.compiler.target properties.
      • if not found, and the compiler plugin version >= 2.3, then it defaults to 1.5 (as stated in the compiler plugin docs)

      More info:
      http://mail-archives.apache.org/mod_mbox/maven-users/201109.mbox/%3CCAKY3QyXbNMHHktYD3XB%3DTe9hEY3Firg2mLzQZ7LF7CFsJ3qWsw%40mail.gmail.com%3E

      Attachments

        1. IdeUtils.patch
          4 kB
          Gabriel Belingueres

        Activity

          People

            rfscholte Robert Scholte
            gaby@ieee.org Gabriel Belingueres
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: