Details
-
Bug
-
Resolution: Done
-
Critical
-
2.2.0.Final
Description
When I install the EJB facet in a Java EE project and I choose version 3.1 of the EJB spec, Forge adds the following managed dependency:
javax.ejb:ejb-api:jar::3.0-alpha-1
This is EJB 3.0, however, so I cannot have things like Singleton EJBs in my project. Adding this dependency would fix the issue:
org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar::1.0.1.Final
I have attached a [failing] test case. Just add it to org.jboss.forge.addon.javaee.ejb.EJBFacetTest and you can simulate the issue.