SonarQube: only pom files push to sonar for multi-modules project

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

Hi,

Welcome to the community!

This error:

Indicates that you’re trying to use Java 17 to run the analysis. That’s not supported yet. Current E.T.A. on that is SonarQube 9.4.

 
HTH,
Ann

hello @ganncamp, thank you so much for the clarification.
Could u please tell me what is the correct version of JAVA for SOnarQube 7.9.1 ? Java 11 - correct?

Yes, thanks, i checked, JAVA 11 works fine with SonarQube 7.9.1

Hi,

I don’t know how I missed it, but you’re running an EOL, unsupported version of SonarQube. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.1 → 8.9.6 → 9.2.4 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

 
HTH,
Ann