CDI beans inside .jar are not found by the container (Unsatisfied dependencies)
问题 I have created a Java project to serve as a lib to other projects, reducing code duplication between projects. This lib project is exported to jar to be included in Web projects (WAR, not EAR). In Web projects (where these classes are being removed) everything worked as usual while all classes were kept on them ─ the injection of simple and complex objects (those with Producers and settings) was working normally. After removing these classes of the Web projects and add the jar with these same