This is the official CDI integration for Vaadin Flow.
This branch is compatible with upcoming Vaadin platform versions. See other branches for other Vaadin versions:
- 15.0 for Vaadin 24
- 14.1 for Vaadin 23.3
- 13.1 for Vaadin 22.1
- 11.3 for Vaadin 14.10
- 10.0 for Vaadin 10
- 3.0 for Vaadin 8.2+
- 2.0 for Vaadin Framework 8.0...8.1 versions
- 1.0 for Vaadin Framework 7 versions
To use CDI with Vaadin 10, you need to add the following dependency to your pom.xml:
<dependency>
<groupdId>com.vaadin</groupId>
<artifactId>vaadin-cdi</artifactId>
<version>10.0.0.beta1</version> <!-- Or the LATEST version -->
</dependency>
Since the current release version is a prerelease, you need to also include the prerelease Maven repository:
<repositories>
<repository>
<id>Vaadin prereleases</id>
<url>https://maven.vaadin.com/vaadin-prereleases</url>
</repository>
</repositories>
NOTE: This is still WIP. The easiest way for starting a project is to go to vaadin.com/start and select the Project Base with CDI to get an empty project with everything setup ready for you.
NOTE: This is still WIP. There is a tutorial also available in https://github.com/vaadin/flow-cdi-tutorial that helps you get started with Vaadin 10 and CDI.
Execute mvn clean install -DskipTests
in the root directory to build vaadin-cdi.
Execute mvn -pl vaadin-cdi-itest -Ptomee verify
in the root directory to run integration tests.
Test can be executed against the following containers, activating the specific profile:
- Wildfly Jakarta EE 9:
-Pwidfly
- Wildfly Jakarta EE 10:
-Pwidfly,jakartaee-10
- OpenLiberty Jakarta EE 9:
-Pliberty
- OpenLiberty Jakarta EE 10:
-Pliberty,jakartaee-10
- Payara Jakarta EE 10:
-Ppayara
(Payara does not support Jakarta EE 9) - TomEE Jakarta EE 9:
-Ptomee
(TomEE does not yet support Jakarta EE 10)
If you find an issue, please report it in the GitHub issue tracker.
The contributing docs can be found here: https://vaadin.com/docs-beta/latest/guide/contributing/overview/