change dependency scopes to fit J2EE _and_ standalone concerns
--------------------------------------------------------------

                 Key: OWB-76
                 URL: https://issues.apache.org/jira/browse/OWB-76
             Project: OpenWebBeans
          Issue Type: Improvement
    Affects Versions: M1
            Reporter: Mark Struberg
            Assignee: Mark Struberg
             Fix For: M2


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to