Sonarqube is Giving compilation error

My code contain class such as Postconstruct and PreDestroy. When I run mvn compile command using java 11 and Java 8 compilation is getting failed. What could be the possible causes for this issue.

Note: I cannot use Java 11 in my code since my code has dependency on Java 8

Hey there.

I can’t tell you why compilation with Java 11 is getting failed. And, if you must compile with Java 8, you can change the JVM before running mvn sonar:sonar. See the documentation on Scanner Environment.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.