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

eclipse:eclipse generates classpathentry element to wrong JRE container

    XMLWordPrintableJSON

Details

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

    Description

      The eclipse:eclipse command does not use the parent POM to find compiler settings to generate the .classpath. Therefore, the file contains a classpathentry pointing to the default JRE.

      To see this in action, check out revision 1582304 of Log4J2's trunk from https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk

      From the root, run 'mvn eclipse:eclipse' then look in log4j-core/.classpath

      The parent POM sets the compile source and target to 1.6. You can run this command with any version of Java, the default JRE will be set in the .classpath file, as opposed to:

      <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: