Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-76

change dependency scopes to fit J2EE _and_ standalone concerns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • M1
    • M2
    • None
    • None

    Description

      Currently many dependencies of the webbeans-impl module do have the <scope>provided</scope>.

      I will change these to the default scope 'compile'.

      The reason:

      scenario 1)
      If I like to use OpenWebBeans standalone in e.g. a WAR, then maven usually resolves all dependencies with scopes 'runtime' and 'compile' and adds them to WEB-INF/lib, but obviously doesn't do this for 'provided'.

      scenario 2)
      If I like to build a webapp for deploying it in a J2EE container like Geronimo, then OpenWebBeans (or any other jSR-299 impl) will be there already, so my webapp doesn't need any webbeans-impl dependency (and therefore there are no transitive dependencies) but only webbeans-api with scope 'provided'.

      steps needed:
      1.) use scope compile in webbeans-impl
      2.) guess should only depend on webbeans-api
      3.) in the guess sample add a profile 'jetty' which adds dependency to webbeans-impl with all its transitive dependencies

      Attachments

        Issue Links

          Activity

            People

              struberg Mark Struberg
              struberg Mark Struberg
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: