Make sure jboss-logging is not adding annotation to its classes as it can cause mess between JDK 8 and 9+.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <compilerArgs>
+ <arg>-Aorg.jboss.logging.tools.addGeneratedAnnotation=false</arg>
+ </compilerArgs>
+ </configuration>
+ </plugin>
</plugins>
</build>
