Incremental sonar scan for maven incremental builds in teamcity

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    => sonarqube Data Center Edition Version 8.9.7 (build 52159), sonar-maven-plugin ver.
  • what are you trying to achieve
    => we are trying to do Incremental sonar scan for maven incremental builds in teamcity
  • what have you tried so far to achieve this
    => we have used sonar:sonar goal of sonar-maven-plugin ver. within maven runner step of teamcity build with incremental building feature turned on, but we are getting below error.
  • error:
    => Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project xxx: Maven session does not declare a top level project


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.7 → 9.9.2 → 10.2.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Note that as a Data Center Edition customer, you have access to our professional support engineers to help you with your upgrade (and any other questions).


Thanks for the response.
We are already scheduled to upgrade our instance to 9.9 LTS between 20th and 25th October.

  1. I want to ask that sonar server is where the report upload will happen. But here we’re getting error during sonar scan itself, on build agent machine - its complaining for “missing top level project”. How can we resolve it? Sonar maven plugin used is the latest one and maven sonar goal sonar:sonar is used.
  2. How can I get professional support? Do we have a tracking tool where I can raise a ticket?



If you don’t have access to the support portal, you should contact your sales rep.


Can you please share the support portal URL?

Also, please let me know if incremental build is possible in sonar using sonar maven plugin?


Please contact your sales rep.