Apache OpenWebBeans (OWB) - Apache's implementation of the Contexts and Dependency Injection (CDI) / Jakarta CDI specification
Jakarta CDI 4.1 implementation (Jakarta EE 11), requires Java 17+.
Jakarta CDI 4.0 implementation (Jakarta EE 10), requires Java 11+.
CDI 2.0 (JSR-365) implementation (Java EE 8), requires Java 8+.
CDI 1.2 (JSR-346) implementation (Java EE 7), requires Java 7+.
CDI 1.0 (JSR-299) implementation (Java EE 6), requires Java 5+.
mvn clean install
<dependency> <groupId>org.apache.openwebbeans</groupId> <artifactId>openwebbeans-impl</artifactId> <version>${owb.version}</version> </dependency> <dependency> <groupId>org.apache.openwebbeans</groupId> <artifactId>openwebbeans-spi</artifactId> <version>${owb.version}</version> </dependency>
<dependency> <groupId>org.apache.openwebbeans</groupId> <artifactId>openwebbeans-web</artifactId> <version>${owb.version}</version> </dependency>
<dependency> <groupId>org.apache.openwebbeans</groupId> <artifactId>openwebbeans-jsf</artifactId> <version>${owb.version}</version> </dependency>
<dependency> <groupId>org.apache.openwebbeans</groupId> <artifactId>openwebbeans-tomcat</artifactId> <version>${owb.version}</version> </dependency>
<dependency> <groupId>org.apache.openwebbeans</groupId> <artifactId>openwebbeans-arquillian</artifactId> <version>${owb.version}</version> <scope>test</scope> </dependency>
<dependency> <groupId>org.apache.openwebbeans</groupId> <artifactId>openwebbeans-junit5</artifactId> <version>${owb.version}</version> <scope>test</scope> </dependency>
OWB is modularly built — a full CDI container in under 1 MB total. Available modules include:
openwebbeans-impl — core CDI container implementationopenwebbeans-spi — SPI interfacesopenwebbeans-web — Servlet / web container integrationopenwebbeans-jsf — Jakarta Faces integrationopenwebbeans-tomcat — Apache Tomcat integrationopenwebbeans-jetty9 — Jetty 9 integrationopenwebbeans-ejb — EJB integrationopenwebbeans-jms — JMS integrationopenwebbeans-el22 — EL 2.2+ integrationopenwebbeans-osgi — OSGi environment supportopenwebbeans-se — Java SE standalone supportopenwebbeans-slf4j — SLF4J logging bridgeopenwebbeans-junit5 — JUnit 5 test supportopenwebbeans-arquillian — Arquillian test supportopenwebbeans-gradle — Gradle build supportOWB can run as a standalone CDI container in plain Java SE applications (Swing, JavaFX, Eclipse RCP, etc.) without any application server or servlet container.
Please visit https://openwebbeans.apache.org for full documentation, examples, and release notes.
Issue tracker: https://issues.apache.org/jira/browse/OWB