Hello, I have issue with sending results to SonarQube compony server for multi-modules project
stack is:
Java JDK 17
Maven 17
SonarQube server 7.9.1
the main POM file has:
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.9.1.2184</version>
</plugin>
Project has structure:
my-project
|--base
|--src
|--target
|--pom
|--uiFramework
|--src
|--target
|--pom
|--apiFramework
|--src
|--target
|--pom
|--uiJourneyTemplate
|--src
|--target
|--pom
|--pom
|--sonar-project.properties
where the main POM file has:
<modules>
<module>base</module>
<module>uiFramework</module>
<module>uiJourneyTemplate</module>
<module>apiFramework</module>
</modules>
Each module has the parent section in their POM file.
in the main folder sonar-properties file has:
sonar.sourceEncoding=UTF-8
sonar.projectKey=com.java.framework:FRAMEWORK
sonar.sources=src
sonar.java.binaries=**/*
sonar.exclusions=**/*.js, uiJourneyTemplate/**/*
#sonar.java.libraries=**/*.jar
#List of module identifiers
sonar.modules=base,uiFramework,apiFramework
#base settings
base.sonar.projectName=com.java.framework:base
base.sonar.sources=src/main/java
#uiFramework settings
uiFramework.sonar.projectName=com.java.framework:uiFramework
uiFramework.sonar.sources=src/main/java
#apiFramework settings
apiFramework.sonar.projectName=com.java.framework:apiFramework
apiFramework.sonar.sources=src/main/java
I tries different variations.
In the result I see that in sonar I have only one java file form base module and POM files from each modules: in the console for others java file I have:
ERROR: Unable to create symbol table for : 'uiFramework/src/main/java/utils/waitings/SmartWait.java'
java.lang.IllegalArgumentException: Unsupported class file major version 61
the same for ALL other classes
what can u recommend?
thanks