Ales Justin wrote:
Yes. If there is an accessible (i.e. classes can be loaded from it) library jar with META-INF/beans.xml, then Weld expects you to return it as part of the BDA graph of the Deployment.
OK, this then rules out my lazy approach. :-)
But I would still do this on_demand, when (but just before) the first CDI/Weld deployment is deployed.
That would be the default behavior, but it could be made optional to do this at boot time instead.
I agree with you. This is next on my todo list.