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:
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.
mvn clean install -DskipTests in the root directory to build vaadin-cdi.
mvn -pl vaadin-cdi-itest -Ptomee verify in the root directory to run integration tests.
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/