Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1674

Forge should add EJB 3.1 dependency

    Details

    • Steps to Reproduce:
      Hide

      1. Start Forge
      2. Create new Web Application Project
      3. Setup EJB 3.1
      4. Create a new Singleton EJB (you can do that with Forge too)

      The new class does not compile as the javax.ejb.Singleton class is missing in the ejb-api.jar.

      Show
      1. Start Forge 2. Create new Web Application Project 3. Setup EJB 3.1 4. Create a new Singleton EJB (you can do that with Forge too) The new class does not compile as the javax.ejb.Singleton class is missing in the ejb-api.jar.

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gastaldi George Gastaldi
                Reporter:
                ivan_stefanov Ivan St. Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: