Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
M1
-
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
- is blocked by
-
OWB-78 exception when running OpenWebBeans + MyFaces apps in jetty
- Closed