maven-eclipse-plugin creates wrong
org.eclipse.wst.common.project.facet.core.xml for ear-projects when
javaee:javaee-api s used
-------------------------------------------------------------------------------------------------------------------------------
Key: MECLIPSE-587
URL: http://jira.codehaus.org/browse/MECLIPSE-587
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: WTP support
Affects Versions: 2.7, 2.8
Environment: Linux SLES10, java 1.5, Eclipse 3.4
Reporter: Gilbert Blom
Attachments: maven-eclipse-plugin.patch
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.
--
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