Since mid afternoon on Thursday May 2nd all our Sonar builds are failing with the same error message:
“No modules for file”. Some projects give this error on a test class, some on a source class
We are using SonarCloud, and sonar-maven-plugin version 3.4.0.905 (I’ve also tried the latest 3.6.0 version and gotten the same results). This happens for all projects, regardless of structure: some of our projects are simple, non-multi-module, others are multimodule. Most of them have a parent pom where all the Sonar configuration is done, and then the projects themselves just declare the plugin, some declare the plugin directy. This happens both when running from our build agent (Bamboo) or running locally (Windows 10, Java 8). All projects are Java.
The errors we are getting are along the lines of:
Starting task 'Sonar' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3'
command 03-May-2019 13:51:39 Beginning to execute external process for build 'Production - Supplier Gateway - Sonar #14 (PROD-SG-SON-14)'\n ... running command line: \n/usr/local/apache-maven-3.5.2/bin/mvn --batch-mode -Djava.io.tmpdir=/opt/atlassian-bamboo-6.6.2/temp/PROD-SG-SON sonar:sonar -Dsonar.branch=master -Dsonar.login=cee5f55bdc36c3a4f433b507353e8218d332e998\n ... in: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON\n ... using extra environment variables: \nbamboo_planRepository_1_branch=master\nbamboo_capability_system_builder_mvn3_Maven_3_3_9=/usr/local/apache-maven-3.3.9\nbamboo_capability_system_builder_ruby_SYSTEM_1_8_7_p374_default=/usr/bin/ruby\nbamboo_planRepository_1_branchDisplayName=master\nbamboo_repository_revision_number=3ec811fc08304ac910bc617002ede28babbda31c\nMAVEN2_HOME=/usr/local/apache-maven-3.5.2\nbamboo_resultsUrl=https://bamboo.blah.org/browse/PROD-SG-SON-14\nbamboo_repository_164855816_git_branch=master\nbamboo_repository_164855816_name=supplier-gateway\nbamboo_build_working_directory=/opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON\nbamboo_capability_system_jdk_JDK1_8_0=/usr/java/jdk1.8.0\nbamboo_planRepository_1_name=supplier-gateway\nbamboo_buildKey=PROD-SG-SON\nbamboo_shortPlanName=Supplier Gateway\nbamboo_planRepository_name=supplier-gateway\nbamboo_capability_system_builder_mvn3_Maven_3_5_2=/usr/local/apache-maven-3.5.2\nbamboo_buildNumber=14\nbamboo_capability_slow_build=true\nbamboo_repository_164855816_revision_number=3ec811fc08304ac910bc617002ede28babbda31c\nbamboo_shortJobName=Sonar\nbamboo_buildResultsUrl=https://bamboo.blah.org/browse/PROD-SG-SON-14\nbamboo_capability_system_jdk_BLAH_JDK=/usr/local/blah-jdk\nbamboo_planRepository_repositoryUrl=git@github.com:blah:project.git\nbamboo_capability_system_builder_mvn3_sonarmaven=/usr/local/maven3/bin/mvn\nbamboo_capability_AWS=true\nbamboo_capability_system_builder_ant_Ant_setup=/opt/bamboo-home/continuous_integration/apache-ant-1.8.4\nbamboo_agentId=6193153\nbamboo_planName=Production - Supplier Gateway\nbamboo_shortPlanKey=SG\nbamboo_shortJobKey=SON\nbamboo_planRepository_revision=3ec811fc08304ac910bc617002ede28babbda31c\nbamboo_buildTimeStamp=2019-05-03T13:51:21.362+01:00\nbamboo_repository_previous_revision_number=3ec811fc08304ac910bc617002ede28babbda31c\nbamboo_repository_164855816_git_repositoryUrl=git@github.com:blah:project.git\nbamboo_capability_system_builder_mvn2_Maven_2=/usr/local/apache-maven-2.2.1\nbamboo_planRepository_previousRevision=3ec811fc08304ac910bc617002ede28babbda31c\nM2_HOME=/usr/local/apache-maven-3.5.2\nbamboo_repository_git_branch=master\nbamboo_buildResultKey=PROD-SG-SON-14\nbamboo_repository_branch_name=master\nbamboo_capability_system_jdk_JDK_1_8_0_102=/usr/java/jdk1.8.0\nbamboo_buildPlanName=Production - Supplier Gateway - Sonar\nbamboo_planRepository_1_revision=3ec811fc08304ac910bc617002ede28babbda31c\nbamboo_repository_name=supplier-gateway\nJAVA_HOME=/usr/java/jdk1.8.0\nbamboo_capability_system_jdk_JDK1_7_0=/usr/local/jdk1.7.0\nbamboo_dependenciesDisabled=false\nbamboo_buildFailed=false\nbamboo_repository_164855816_git_username=\nbamboo_planRepository_branch=master\nbamboo_capability_system_builder_command_Bash=/bin/bash\nbamboo_agentWorkingDirectory=/opt/bamboo-home/xml-data/build-dir/6193153\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_repository_git_username=\nbamboo_planRepository_1_previousRevision=3ec811fc08304ac910bc617002ede28babbda31c\nbamboo_repository_164855816_branch_name=master\nbamboo_planRepository_branchDisplayName=master\nbamboo_planRepository_1_type=gitv2\nbamboo_planRepository_branchName=master\nbamboo_capability_local_agent=1\nbamboo_capability_system_jdk_JDK=/usr/local/jdk1.7.0\nbamboo_capability_system_builder_ruby_SYSTEM_2_0_0_p648_default=/usr/bin/ruby\nbamboo_plan_storageTag=plan-164659209\nbamboo_hg_cache_directory=/opt/bamboo-home/xml-data/build-dir/_hg-repositories-cache\nbamboo_planRepository_1_username=\nbamboo_planRepository_type=gitv2\nbamboo_git_cache_directory=/opt/bamboo-home/xml-data/build-dir/_git-repositories-cache\nbamboo_ManualBuildTriggerReason_userName=ega\nbamboo_repository_git_repositoryUrl=git@github.com:blah/project.git\nuseMavenReturnCode=false\nbamboo_capability_githubstatus=1\nbamboo_capability_system_builder_node_Node_js=/usr/bin/node\nbamboo_build_commandline_com_atlassian_bamboo_plugins_maven_task_builder_mvn3_2=/usr/local/apache-maven-3.5.2/bin/mvn --batch-mode -Djava.io.tmpdir=/opt/atlassian-bamboo-6.6.2/temp/PROD-SG-SON clean jacoco:prepare-agent test jacoco:report -Dmaven.test.failure.ignore=true\nbamboo_capability_system_builder_ant_Ant=/opt/bamboo-home/continuous_integration/apache-ant-1.8.4\nbamboo_capability_system_builder_mvn3_Maven_3=/usr/local/maven3\nbamboo_tmp_directory=/opt/bamboo-home/temp\nbamboo_capability_system_builder_ruby_SYSTEM_2_0_0_p598_default=/usr/bin/ruby\nbamboo_working_directory=/opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON\nbamboo_capability_system_builder_gradle_gradle_1_6=/opt/gradle/gradle-1.6\nbamboo_planKey=PROD-SG\nbamboo_planRepository_1_repositoryUrl=git@github.com:blah/project.git\nbamboo_planRepository_username=\nbamboo_repository_164855816_previous_revision_number=3ec811fc08304ac910bc617002ede28babbda31c\nbamboo_capability_system_builder_command_TestRunner__SoapUI_=\opt\SoapUI-5.2.1\nbamboo_capability_system_jdk_JDK_1_8=/usr/java/jdk1.8.0\nbamboo_capability_dockerstuff=1\nbamboo_capability_system_jdk_JDK_1_7_0_09=/usr/local/jdk1.7.0\nbamboo_capability_system_builder_ant_Ant_1_8_4=/opt/bamboo-home/continuous_integration/apache-ant-1.8.4\nbamboo_capability_system_jdk_JDK_1_6_0_32=/usr/local/jdk1.6.0\nbamboo_capability_system_jdk_JDK_1_7=/usr/local/jdk1.7.0\nbamboo_planRepository_1_branchName=master\nPATH=/usr/java/jdk1.8.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin\n
build 03-May-2019 13:51:40 [INFO] Scanning for projects...
build 03-May-2019 13:51:40 [WARNING]
build 03-May-2019 13:51:40 [WARNING] Some problems were encountered while building the effective model for org.blah:project:jar:1.0.0-SNAPSHOT
build 03-May-2019 13:51:40 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.codehaus.mojo:findbugs-maven-plugin @ org.blah:project:[unknown-version], /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/pom.xml, line 51, column 12
build 03-May-2019 13:51:40 [WARNING]
build 03-May-2019 13:51:40 [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
build 03-May-2019 13:51:40 [WARNING]
build 03-May-2019 13:51:40 [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
build 03-May-2019 13:51:40 [WARNING]
build 03-May-2019 13:51:41 [INFO]
build 03-May-2019 13:51:41 [INFO] ------------------------------------------------------------------------
build 03-May-2019 13:51:41 [INFO] Building Supplier Gateway 1.0.0-SNAPSHOT
build 03-May-2019 13:51:41 [INFO] ------------------------------------------------------------------------
build 03-May-2019 13:51:41 [INFO]
build 03-May-2019 13:51:41 [INFO] --- sonar-maven-plugin:3.4.0.905:sonar (default-cli) @ supplier-gateway ---
build 03-May-2019 13:51:42 [INFO] User cache: /opt/bamboo-home/.sonar/cache
build 03-May-2019 13:51:42 [INFO] SonarQube version: 7.8.0
build 03-May-2019 13:51:42 [INFO] Default locale: "en_GB", source code encoding: "UTF-8"
build 03-May-2019 13:51:43 [INFO] Load global settings
build 03-May-2019 13:51:43 [INFO] Load global settings (done) | time=268ms
build 03-May-2019 13:51:43 [INFO] Server id: BD367519-AWHW8ct9-T_TB3XqouNu
build 03-May-2019 13:51:43 [INFO] User cache: /opt/bamboo-home/.sonar/cache
build 03-May-2019 13:51:43 [INFO] Load/download plugins
build 03-May-2019 13:51:43 [INFO] Load plugins index
build 03-May-2019 13:51:43 [INFO] Load plugins index (done) | time=74ms
build 03-May-2019 13:51:44 [INFO] Load/download plugins (done) | time=1335ms
build 03-May-2019 13:51:45 [INFO] Loaded core extensions: developer-scanner
build 03-May-2019 13:51:45 [INFO] Process project properties
build 03-May-2019 13:51:45 [INFO] Execute project builders
build 03-May-2019 13:51:45 [INFO] Execute project builders (done) | time=4ms
build 03-May-2019 13:51:45 [INFO] Project key: org.blah:project
build 03-May-2019 13:51:45 [INFO] Base dir: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON
build 03-May-2019 13:51:45 [INFO] Working dir: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/sonar
build 03-May-2019 13:51:45 [INFO] Load project settings for component key: 'org.blah:project:master'
build 03-May-2019 13:51:46 [INFO] Load project settings for component key: 'org.blah:project:master' (done) | time=58ms
build 03-May-2019 13:51:46 [INFO] Load project branches
build 03-May-2019 13:51:46 [INFO] Load project branches (done) | time=35ms
build 03-May-2019 13:51:46 [INFO] Load project pull requests
build 03-May-2019 13:51:46 [INFO] Load project pull requests (done) | time=32ms
build 03-May-2019 13:51:46 [INFO] Load branch configuration
build 03-May-2019 13:51:46 [INFO] Load branch configuration (done) | time=2ms
build 03-May-2019 13:51:46 [INFO] Load quality profiles
build 03-May-2019 13:51:46 [INFO] Load quality profiles (done) | time=84ms
build 03-May-2019 13:51:46 [INFO] Load active rules
build 03-May-2019 13:51:47 [INFO] Load active rules (done) | time=1342ms
build 03-May-2019 13:51:47 [INFO] Organization key: blah
build 03-May-2019 13:51:47 [INFO] Branch key: master
build 03-May-2019 13:51:47 [WARNING] The use of "sonar.branch" is deprecated and replaced by "sonar.branch.name". See https://redirect.sonarsource.com/doc/branches.html.
build 03-May-2019 13:51:47 [INFO] Indexing files...
build 03-May-2019 13:51:47 [INFO] Project configuration:
build 03-May-2019 13:51:47 [INFO] 17 files indexed
build 03-May-2019 13:51:47 [INFO] 0 files ignored because of scm ignore settings
build 03-May-2019 13:51:47 [INFO] Quality profile for java: Sonar way
build 03-May-2019 13:51:47 [INFO] Quality profile for xml: Sonar way
build 03-May-2019 13:51:47 [INFO] ------------- Run sensors on module Supplier Gateway
build 03-May-2019 13:51:48 [INFO] Load metrics repository
build 03-May-2019 13:51:48 [INFO] Load metrics repository (done) | time=36ms
build 03-May-2019 13:51:51 [INFO] Sensor JavaSquidSensor [java]
build 03-May-2019 13:51:51 [INFO] Configured Java source version (sonar.java.source): 8
build 03-May-2019 13:51:51 [INFO] JavaClasspath initialization
build 03-May-2019 13:51:51 [INFO] JavaClasspath initialization (done) | time=27ms
build 03-May-2019 13:51:51 [INFO] JavaTestClasspath initialization
build 03-May-2019 13:51:51 [INFO] JavaTestClasspath initialization (done) | time=3ms
build 03-May-2019 13:51:51 [INFO] Java Main Files AST scan
build 03-May-2019 13:51:51 [INFO] 14 source files to be analyzed
build 03-May-2019 13:51:51 [INFO] Load project repositories
build 03-May-2019 13:51:51 [INFO] Load project repositories (done) | time=60ms
build 03-May-2019 13:51:53 [WARNING] Classes not found during the analysis : [javax.annotation.meta.When]
build 03-May-2019 13:51:53 [INFO] 14/14 source files have been analyzed
build 03-May-2019 13:51:53 [INFO] Java Main Files AST scan (done) | time=2011ms
build 03-May-2019 13:51:53 [INFO] Java Test Files AST scan
build 03-May-2019 13:51:53 [INFO] 2 source files to be analyzed
build 03-May-2019 13:51:53 [WARNING] Unable to create a corresponding matcher for custom assertion method, please check the format of the following symbol: ''
build 03-May-2019 13:51:53 [WARNING] Classes not found during the analysis : [javax.annotation.meta.When]
build 03-May-2019 13:51:53 [INFO] 2/2 source files have been analyzed
build 03-May-2019 13:51:53 [INFO] Java Test Files AST scan (done) | time=98ms
build 03-May-2019 13:51:53 [INFO] Sensor JavaSquidSensor [java] (done) | time=2750ms
build 03-May-2019 13:51:53 [INFO] Sensor SurefireSensor [java]
build 03-May-2019 13:51:53 [INFO] parsing [/opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/surefire-reports]
build 03-May-2019 13:51:53 [INFO] Sensor SurefireSensor [java] (done) | time=36ms
build 03-May-2019 13:51:53 [INFO] Sensor JaCoCoSensor [java]
build 03-May-2019 13:51:53 [INFO] Sensor JaCoCoSensor [java] (done) | time=2ms
build 03-May-2019 13:51:53 [INFO] Sensor JavaXmlSensor [java]
build 03-May-2019 13:51:53 [INFO] 1 source files to be analyzed
build 03-May-2019 13:51:54 [INFO] Sensor JavaXmlSensor [java] (done) | time=177ms
build 03-May-2019 13:51:54 [INFO] Sensor HTML [web]
build 03-May-2019 13:51:54 [INFO] 1/1 source files have been analyzed
build 03-May-2019 13:51:54 [INFO] Sensor HTML [web] (done) | time=13ms
build 03-May-2019 13:51:54 [INFO] Sensor XML Sensor [xml]
build 03-May-2019 13:51:54 [INFO] 1 source files to be analyzed
build 03-May-2019 13:51:54 [INFO] Sensor XML Sensor [xml] (done) | time=230ms
build 03-May-2019 13:51:54 [INFO] Sensor JaCoCo XML Report Importer [jacoco]
build 03-May-2019 13:51:54 [INFO] 1/1 source files have been analyzed
build 03-May-2019 13:51:54 [INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=40ms
build 03-May-2019 13:51:54 [INFO] Sensor JavaSecuritySensor [security]
build 03-May-2019 13:51:54 [INFO] Reading type hierarchy from: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/sonar/ucfg2/java
build 03-May-2019 13:51:54 [INFO] Read 33 type definitions
build 03-May-2019 13:51:54 [INFO] Reading UCFGs from: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/sonar/ucfg2/java
build 03-May-2019 13:51:54 [INFO] 13:51:54.399 Building Type propagation graph
build 03-May-2019 13:51:54 [INFO] 13:51:54.407 Running Tarjan on 114 nodes
build 03-May-2019 13:51:54 [INFO] 13:51:54.409 Tarjan found 114 components
build 03-May-2019 13:51:54 [INFO] 13:51:54.411 Variable type analysis: done
build 03-May-2019 13:51:54 [INFO] Analyzing 38 ucfgs to detect vulnerabilities.
build 03-May-2019 13:51:54 [INFO] All rules entrypoints : 0 Retained UCFGs : 0
build 03-May-2019 13:51:54 [INFO] rule: S5131, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 1 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S5131 done
build 03-May-2019 13:51:54 [INFO] rule: S3649, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S3649 done
build 03-May-2019 13:51:54 [INFO] rule: S2076, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S2076 done
build 03-May-2019 13:51:54 [INFO] rule: S2091, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S2091 done
build 03-May-2019 13:51:54 [INFO] rule: S2078, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S2078 done
build 03-May-2019 13:51:54 [INFO] rule: S2631, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S2631 done
build 03-May-2019 13:51:54 [INFO] rule: S2083, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S2083 done
build 03-May-2019 13:51:54 [INFO] rule: S5167, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S5167 done
build 03-May-2019 13:51:54 [INFO] rule: S5144, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S5144 done
build 03-May-2019 13:51:54 [INFO] rule: S5145, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S5145 done
build 03-May-2019 13:51:54 [INFO] rule: S5146, entrypoints: 0
build 03-May-2019 13:51:54 [INFO] Visited 0 ucfgs in 0 ms, 0 steps
build 03-May-2019 13:51:54 [INFO] rule: S5146 done
build 03-May-2019 13:51:54 [INFO] Sensor JavaSecuritySensor [security] (done) | time=258ms
build 03-May-2019 13:51:54 [INFO] Sensor CSharpSecuritySensor [security]
build 03-May-2019 13:51:54 [INFO] Reading type hierarchy from: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/ucfg_cs2
build 03-May-2019 13:51:54 [INFO] Read 0 type definitions
build 03-May-2019 13:51:54 [INFO] Reading UCFGs from: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/ucfg_cs2
build 03-May-2019 13:51:54 [INFO] No UCFGs have been included for analysis.
build 03-May-2019 13:51:54 [INFO] Sensor CSharpSecuritySensor [security] (done) | time=1ms
build 03-May-2019 13:51:54 [INFO] Sensor PhpSecuritySensor [security]
build 03-May-2019 13:51:54 [INFO] Reading type hierarchy from: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/sonar/ucfg2/php
build 03-May-2019 13:51:54 [INFO] Read 0 type definitions
build 03-May-2019 13:51:54 [INFO] Reading UCFGs from: /opt/bamboo-home/xml-data/build-dir/6193153/PROD-SG-SON/target/sonar/ucfg2/php
build 03-May-2019 13:51:54 [INFO] No UCFGs have been included for analysis.
build 03-May-2019 13:51:54 [INFO] Sensor PhpSecuritySensor [security] (done) | time=0ms
build 03-May-2019 13:51:54 [INFO] ------------- Run sensors on project
build 03-May-2019 13:51:54 [INFO] Sensor Zero Coverage Sensor
build 03-May-2019 13:51:54 [INFO] Sensor Zero Coverage Sensor (done) | time=3ms
build 03-May-2019 13:51:54 [INFO] Sensor Java CPD Block Indexer
build 03-May-2019 13:51:54 [INFO] Sensor Java CPD Block Indexer (done) | time=27ms
build 03-May-2019 13:51:54 [INFO] ------------------------------------------------------------------------
build 03-May-2019 13:51:54 [INFO] BUILD FAILURE
build 03-May-2019 13:51:54 [INFO] ------------------------------------------------------------------------
build 03-May-2019 13:51:54 [INFO] Total time: 14.011 s
build 03-May-2019 13:51:54 [INFO] Finished at: 2019-05-03T13:51:54+01:00
build 03-May-2019 13:51:54 [INFO] Final Memory: 64M/485M
build 03-May-2019 13:51:54 [INFO] ------------------------------------------------------------------------
build 03-May-2019 13:51:54 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project supplier-gateway: No modules for file 'src/main/java/org/blah/foo/something/service/blah/BlahService.java' -> [Help 1]
The actual exception when running this with -X -e:
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
build 02-May-2019 16:41:33 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
build 02-May-2019 16:41:33 at java.lang.reflect.Method.invoke (Method.java:498)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
build 02-May-2019 16:41:33 Caused by: org.apache.maven.plugin.MojoExecutionException: No modules for file 'src/test/java/org/blah/foo/IsProcessingEndpointTest.java'
build 02-May-2019 16:41:33 at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:65)
build 02-May-2019 16:41:33 at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:108)
build 02-May-2019 16:41:33 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
build 02-May-2019 16:41:33 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
build 02-May-2019 16:41:33 at java.lang.reflect.Method.invoke (Method.java:498)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
build 02-May-2019 16:41:33 Caused by: java.lang.IllegalStateException: No modules for file 'src/test/java/org/blah/foo/IsProcessingEndpointTest.java'
build 02-May-2019 16:41:33 at org.sonar.scanner.scan.filesystem.InputComponentStore.lambda$findModule$3 (InputComponentStore.java:136)
build 02-May-2019 16:41:33 at java.util.Optional.orElseThrow (Optional.java:290)
build 02-May-2019 16:41:33 at org.sonar.scanner.scan.filesystem.InputComponentStore.findModule (InputComponentStore.java:136)
build 02-May-2019 16:41:33 at org.sonar.scanner.scm.ScmPublisher.collectFilesToBlame (ScmPublisher.java:99)
build 02-May-2019 16:41:33 at org.sonar.scanner.scm.ScmPublisher.publish (ScmPublisher.java:75)
build 02-May-2019 16:41:33 at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart (ProjectScanContainer.java:323)
build 02-May-2019 16:41:33 at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)
build 02-May-2019 16:41:33 at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:122)
build 02-May-2019 16:41:33 at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart (GlobalContainer.java:128)
build 02-May-2019 16:41:33 at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)
build 02-May-2019 16:41:33 at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:122)
build 02-May-2019 16:41:33 at org.sonar.batch.bootstrapper.Batch.doExecute (Batch.java:73)
build 02-May-2019 16:41:33 at org.sonar.batch.bootstrapper.Batch.execute (Batch.java:67)
build 02-May-2019 16:41:33 at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute (BatchIsolatedLauncher.java:46)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
build 02-May-2019 16:41:33 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
build 02-May-2019 16:41:33 at java.lang.reflect.Method.invoke (Method.java:498)
build 02-May-2019 16:41:33 at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke (IsolatedLauncherProxy.java:60)
build 02-May-2019 16:41:33 at com.sun.proxy.$Proxy23.execute (Unknown Source)
build 02-May-2019 16:41:33 at org.sonarsource.scanner.api.EmbeddedScanner.doExecute (EmbeddedScanner.java:171)
build 02-May-2019 16:41:33 at org.sonarsource.scanner.api.EmbeddedScanner.execute (EmbeddedScanner.java:128)
build 02-May-2019 16:41:33 at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:63)
build 02-May-2019 16:41:33 at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:108)
build 02-May-2019 16:41:33 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
build 02-May-2019 16:41:33 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
build 02-May-2019 16:41:33 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
build 02-May-2019 16:41:33 at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
build 02-May-2019 16:41:33 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
build 02-May-2019 16:41:33 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
build 02-May-2019 16:41:33 at java.lang.reflect.Method.invoke (Method.java:498)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
build 02-May-2019 16:41:33 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
build 02-May-2019 16:41:33 [ERROR]
Due to this, we’ve had to disable Sonar in all our builds for now.
I’ve managed to track this down to this commit: Refactor code to avoid costly loop · SonarSource/sonarqube@b60211a · GitHub but can’t figure out what exactly it is trying to do, or how to prevent it.
Any idea what is going on?