To validate the cdi configuration as part of the build, add the following in the <build> section of your POM:
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>com.github.jonasrutishauser.maven.plugin</groupId>
<artifactId>cdi-maven-plugin</artifactId>
<version>2.0.1-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
[...]
</project>
When mvn verify is invoked, the validation will be done during the project build.