Help Needed: Groovy & Java Scan Not Working on SonarQube 9.9.0 CE

Hi everyone,

I’m trying to scan a project containing both Java and Groovy code using SonarQube 9.9.0 Community Edition deployed via Docker Compose. Here’s what I’ve set up so far:

Environment & Setup:

  • SonarQube Version: 9.9.0 Community Edition

  • Deployment: Docker Compose

  • Maven: 3.6.3

  • Java: 11

  • Plugins:

Goal:
Scan Java and Groovy code with Maven and SonarQube.

Problem:
When I run the Maven command:

mvn clean verify sonar:sonar -Dsonar.projectKey=... -Dsonar.host.url=http://localhost:9005 -Dsonar.login=...

Maven fails to download plugins (jacoco-maven-plugin, sonar-maven-plugin) and the scan does not proceed.

What I’ve tried so far:

  1. Added the Groovy plugin to /opt/sonarqube/extensions/plugins inside the Docker container.

  2. Verified Maven and Java versions.

  3. Ran the standard Maven Sonar command.

  4. Checked Docker logs for SonarQube to ensure it’s running properly.

Despite these steps, the Groovy scan is not working, and plugin downloads fail. Here i can scan the java base code but with plugin sonar-groovy-plugin-1.8-sources.jar
unable to scan groovy code with my project.

Could anyone guide me on:

  • How to properly enable Groovy scanning on SonarQube CE?

  • How to resolve plugin download issues when using Maven behind Docker?

Thanks in advance for your help!

Hi,

Welcome to the community!

Only the latest version of SonarQube Community Build is considered active, so you’ll need to update and see if the situation is still replicable before we can help you.

Your update path is:

9.9.0 → 24.12 → 25.9

You may find these resources helpful:

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

Regarding your error, it seems to be happening when downloading from Maven Central. That’s before analysis ever starts. You might want to talk to your network folks.

 
Ann