[ https://jira.codehaus.org/browse/MECLIPSE-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274813#comment-274813 ]
Nadeem M Nayeck commented on MECLIPSE-587: ------------------------------------------ This issue is quite important, I wonder why this patch hasn't been applied yet. The issue is not only with javaee:javaee-api but also with this: <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>5.0</version> > 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: https://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. For more information on JIRA, see: http://www.atlassian.com/software/jira