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

maven-eclipse-plugin creates wrong org.eclipse.wst.common.project.facet.core.xml for ear-projects when javaee:javaee-api s used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7, 2.8
    • 2.9
    • WTP support
    • None
    • Linux SLES10, java 1.5, Eclipse 3.4
    • Patch

    Description

      When creating an ear-project with maven-eclipse-plugin 2.7, the created file .settings/org.eclipse.wst.common.project.facet.core.xml is incorrect.

      This is the content of the generated file:
      <faceted-project>
      <fixed facet="jst.ear"/>
      <installed facet="jst.ear" version="5"/>
      </faceted-project>

      The correct content should be:
      <faceted-project>
      <fixed facet="jst.ear"/>
      <installed facet="jst.ear" version="5.0"/>
      </faceted-project>

      So version should be '5.0', not '5'.

      Investigation of the code showed that the way the plugin detects the version is flawed. When dependency javaee:javaee-api with version 5 is used, this 5 is put in the file.

      Attachments

        1. maven-eclipse-plugin.patch
          0.8 kB
          Gilbert Blom

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              trimbleglob Gilbert Blom
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: