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

        

Reply via email to