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:
-
Groovy plugin
sonar-groovy-plugin-1.8.jarfrom Inform-Software GitHub -
Jacoco Maven plugin (0.8.10)
-
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:
-
Added the Groovy plugin to
/opt/sonarqube/extensions/pluginsinside the Docker container. -
Verified Maven and Java versions.
-
Ran the standard Maven Sonar command.
-
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!
