You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andy (JIRA)" <ji...@codehaus.org> on 2012/09/25 16:53:36 UTC

[jira] (MECLIPSE-733) Incomplete / inconsistent JEE6 Support

Andy created MECLIPSE-733:
-----------------------------

             Summary: Incomplete / inconsistent JEE6 Support
                 Key: MECLIPSE-733
                 URL: https://jira.codehaus.org/browse/MECLIPSE-733
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: WTP support
    Affects Versions: 2.9
            Reporter: Andy
         Attachments: JeeUtils_patch.java

Hi,

having a look the source of the jee version determination, it looks like the determination is not consistent concerning the jee version since, since the version cannot be properly determined if there are gernonimo spec files for servlet (v3) or for ejb 3.1. For ejb version 3.0 the source contains the following if condition:

> if ( version == null )
> {
> if ( IdeUtils.getArtifactVersion( new String[] { "geronimo-ejb_3.0_spec" }, project.getDependencies(), 3 ) != null )
> return JeeDescriptor.EJB_3_0;
> }

so why is there no if condigition checking for the geronimo-ejb_3.1_spec to determine if ejb 3.1 is used? The same check is
also missing for the servlet api (3.0) as well. The attached patch will add the two missing if conditions for the missing servlet and ejb spec of geronimo.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira