Scan Execution Failure (Docker SonaQube)

Good Day All,

I am battling to successfully run a .net scan, I tried to add as much details as I can.
Also note that I am still new on SonarQube so excuse anything obvious that I might have missed.

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • OS [Oracle Linux 7 (x86_64) UEK Release 6]
  • Docker Image [Docker version 19.03.11-ol, build 9bb540d]
  • SonarScanner 4.7.0.2747
  • what are you trying to achieve
  • I am trying to scan a .Net project using SonarQube Docker Image + SonarScanner CLI
  • what have you tried so far to achieve this
  • Installed the Docker Image
  • installed the SonarScanner CLI [docker pull sonarsource/sonar-scanner-cli]
  • Copied the source code onto the server then went to the root folder and ran the below commands
    docker run
    –rm
    -e SONAR_HOST_URL=“<>”
    -e SONAR_LOGIN=“<>”
    -v $(<>):/usr/src
    sonarsource/sonar-scanner-cli

Debug output below:

14:27:06.016 INFO: Scsudo 
14:27:06.019 INFO: Project root configuration file: NONE
14:27:06.064 INFO: SonarScanner 4.7.0.2747
14:27:06.064 INFO: Java 11.0.14 Alpine (64-bit)
14:27:06.064 INFO: Linux 5.4.17-2136.300.7.el7uek.x86_64 amd64
14:27:06.309 DEBUG: keyStore is : 
14:27:06.309 DEBUG: keyStore type is : pkcs12
14:27:06.309 DEBUG: keyStore provider is : 
14:27:06.309 DEBUG: init keystore
14:27:06.309 DEBUG: init keymanager of type SunX509
14:27:06.503 DEBUG: Create: /opt/sonar-scanner/.sonar/cache
14:27:06.504 INFO: User cache: /opt/sonar-scanner/.sonar/cache
14:27:06.504 DEBUG: Create: /opt/sonar-scanner/.sonar/cache/_tmp
14:27:06.508 DEBUG: Extract sonar-scanner-api-batch in temp...
14:27:06.515 DEBUG: Get bootstrap index...
14:27:06.515 DEBUG: Download: http://192.168.32.41:9000/batch/index
14:27:06.579 DEBUG: Get bootstrap completed
14:27:06.585 DEBUG: Download http://192.168.32.41:9000/batch/file?name=sonar-scanner-engine-shaded-9.4.0.54424-all.jar to /opt/sonar-scanner/.sonar/cache/_t
mp/fileCache1451152575751542518.tmp
14:27:07.185 DEBUG: Create isolated classloader...
14:27:07.196 DEBUG: Start temp cleaning...
14:27:07.200 DEBUG: Temp cleaning done
14:27:07.201 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
14:27:07.201 INFO: Project root configuration file: NONE
14:27:07.202 DEBUG: Execution getVersion
14:27:07.222 INFO: Analyzing on SonarQube server 9.4.0
14:27:07.223 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
14:27:07.223 DEBUG: Work directory: /usr/src/.scannerwork
14:27:07.225 DEBUG: Execution execute
14:27:07.738 DEBUG: Community 9.4.0.54424
14:27:08.136 INFO: Load global settings
14:27:08.265 DEBUG: GET 200 http://192.168.32.41:9000/api/settings/values.protobuf | time=127ms
14:27:08.305 INFO: Load global settings (done) | time=169ms
14:27:08.307 INFO: Server id: FB4B1083-AYDJWFL7TO7at26uNdXO
14:27:08.320 DEBUG: Create : /opt/sonar-scanner/.sonar/_tmp
14:27:08.321 INFO: User cache: /opt/sonar-scanner/.sonar/cache
14:27:08.329 INFO: Load/download plugins
14:27:08.330 INFO: Load plugins index
14:27:08.342 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/installed | time=12ms
14:27:08.398 INFO: Load plugins index (done) | time=68ms
14:27:08.399 DEBUG: Download plugin 'csharp' to '/opt/sonar-scanner/.sonar/_tmp/fileCache8253959628777906712.tmp'
14:27:08.409 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=csharp&acceptCompressions=pack200 | time=9ms
14:27:08.528 DEBUG: Download plugin 'config' to '/opt/sonar-scanner/.sonar/_tmp/fileCache2139834702663728538.tmp'
14:27:08.535 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=config&acceptCompressions=pack200 | time=7ms
14:27:08.539 DEBUG: Download plugin 'flex' to '/opt/sonar-scanner/.sonar/_tmp/fileCache5556610031337371550.tmp'
14:27:08.555 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=flex&acceptCompressions=pack200 | time=16ms
14:27:08.578 DEBUG: Download plugin 'go' to '/opt/sonar-scanner/.sonar/_tmp/fileCache13991806325321671673.tmp'
14:27:08.585 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=go&acceptCompressions=pack200 | time=7ms
14:27:08.662 DEBUG: Download plugin 'web' to '/opt/sonar-scanner/.sonar/_tmp/fileCache9809127661573072491.tmp'
14:27:08.669 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=web&acceptCompressions=pack200 | time=7ms
14:27:08.682 DEBUG: Download plugin 'iac' to '/opt/sonar-scanner/.sonar/_tmp/fileCache8656353715551776497.tmp'
14:27:08.688 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=iac&acceptCompressions=pack200 | time=6ms
14:27:08.704 DEBUG: Download plugin 'jacoco' to '/opt/sonar-scanner/.sonar/_tmp/fileCache1322186418980412867.tmp'
14:27:08.708 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=jacoco&acceptCompressions=pack200 | time=4ms
14:27:08.711 DEBUG: Download plugin 'java' to '/opt/sonar-scanner/.sonar/_tmp/fileCache6601442728307432376.tmp'
14:27:08.724 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=java&acceptCompressions=pack200 | time=13ms
14:27:08.948 DEBUG: Download plugin 'javascript' to '/opt/sonar-scanner/.sonar/_tmp/fileCache17288081731565902146.tmp'
14:27:08.953 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=javascript&acceptCompressions=pack200 | time=4ms
14:27:09.211 DEBUG: Download plugin 'kotlin' to '/opt/sonar-scanner/.sonar/_tmp/fileCache4362449549177986198.tmp'
14:27:09.218 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=kotlin&acceptCompressions=pack200 | time=7ms
14:27:09.614 DEBUG: Download plugin 'php' to '/opt/sonar-scanner/.sonar/_tmp/fileCache1813847420380339876.tmp'
14:27:09.619 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=php&acceptCompressions=pack200 | time=4ms
14:27:09.676 DEBUG: Download plugin 'python' to '/opt/sonar-scanner/.sonar/_tmp/fileCache5201691900774690224.tmp'
14:27:09.682 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=python&acceptCompressions=pack200 | time=6ms
14:27:09.762 DEBUG: Download plugin 'ruby' to '/opt/sonar-scanner/.sonar/_tmp/fileCache11390762232536329177.tmp'
14:27:09.771 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=ruby&acceptCompressions=pack200 | time=9ms
14:27:09.926 DEBUG: Download plugin 'sonarscala' to '/opt/sonar-scanner/.sonar/_tmp/fileCache6091060484281124630.tmp'
14:27:09.939 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=sonarscala&acceptCompressions=pack200 | time=12ms
14:27:10.111 DEBUG: Download plugin 'text' to '/opt/sonar-scanner/.sonar/_tmp/fileCache3441131599834262028.tmp'
14:27:10.114 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=text&acceptCompressions=pack200 | time=3ms
14:27:10.118 DEBUG: Download plugin 'vbnet' to '/opt/sonar-scanner/.sonar/_tmp/fileCache4337712602593400649.tmp'
14:27:10.121 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=vbnet&acceptCompressions=pack200 | time=3ms
14:27:10.167 DEBUG: Download plugin 'xml' to '/opt/sonar-scanner/.sonar/_tmp/fileCache8332674519097722399.tmp'
14:27:10.171 DEBUG: GET 200 http://192.168.32.41:9000/api/plugins/download?plugin=xml&acceptCompressions=pack200 | time=4ms
14:27:10.197 INFO: Load/download plugins (done) | time=1868ms
14:27:10.351 DEBUG: Plugins:
14:27:10.351 DEBUG:   * Python Code Quality and Security 3.12.0.9583 (python)
14:27:10.351 DEBUG:   * Go Code Quality and Security 1.9.0.3429 (go)
14:27:10.352 DEBUG:   * JaCoCo 1.1.1.1157 (jacoco)
14:27:10.352 DEBUG:   * Kotlin Code Quality and Security 2.9.0.1147 (kotlin)
14:27:10.352 DEBUG:   * IaC Code Quality and Security 1.7.0.2012 (iac)
14:27:10.352 DEBUG:   * JavaScript/TypeScript/CSS Code Quality and Security 9.1.0.17747 (javascript)
14:27:10.352 DEBUG:   * Ruby Code Quality and Security 1.9.0.3429 (ruby)
14:27:10.352 DEBUG:   * Scala Code Quality and Security 1.9.0.3429 (sonarscala)
14:27:10.352 DEBUG:   * C# Code Quality and Security 8.36.1.44192 (csharp)
14:27:10.352 DEBUG:   * Java Code Quality and Security 7.11.0.29148 (java)
14:27:10.352 DEBUG:   * HTML Code Quality and Security 3.6.0.3106 (web)
14:27:10.352 DEBUG:   * Flex Code Quality and Security 2.7.0.2865 (flex)
14:27:10.353 DEBUG:   * XML Code Quality and Security 2.5.0.3376 (xml)
14:27:10.353 DEBUG:   * PHP Code Quality and Security 3.23.1.8766 (php)
14:27:10.353 DEBUG:   * Text file Code Quality and Security 1.0.0.120 (text)
14:27:10.353 DEBUG:   * VB.NET Code Quality and Security 8.36.1.44192 (vbnet)
14:27:10.353 DEBUG:   * Configuration detection fot Code Quality and Security 1.2.0.267 (config)
14:27:11.082 INFO: Process project properties
14:27:11.097 WARN: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependency
Exception: Error creating bean with name 'ClassRealm{javascript}-org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl': Unsatisfied dependency express
ed through constructor parameter 4; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'Ana
lysisTempFolder' defined in org.sonar.scanner.analysis.AnalysisTempFolderProvider: Unsatisfied dependency expressed through method 'provide' parameter 0; ne
sted exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'DefaultInputProject' defined in org.sonar
.scanner.scan.InputProjectProvider: Unsatisfied dependency expressed through method 'provide' parameter 2; nested exception is org.springframework.beans.fac
tory.BeanCreationException: Error creating bean with name 'ProjectReactor' defined in org.sonar.scanner.scan.MutableProjectReactorProvider: Bean instantiati
on via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.bootstrap
.ProjectReactor]: Factory method 'provide' threw exception; nested exception is You must define the following mandatory properties for 'Unknown': sonar.proj
ectKey
14:27:11.105 INFO: ------------------------------------------------------------------------
14:27:11.105 INFO: EXECUTION FAILURE
14:27:11.106 INFO: ------------------------------------------------------------------------
14:27:11.106 INFO: Total time: 5.100s
14:27:11.144 INFO: Final Memory: 7M/27M
14:27:11.144 INFO: ------------------------------------------------------------------------
14:27:11.144 ERROR: Error during SonarScanner execution
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ClassRealm{javascript}-org.sonar.plugins.javascript.eslint.
EslintBridgeServerImpl': Unsatisfied dependency expressed through constructor parameter 4; nested exception is org.springframework.beans.factory.Unsatisfied
DependencyException: Error creating bean with name 'AnalysisTempFolder' defined in org.sonar.scanner.analysis.AnalysisTempFolderProvider: Unsatisfied depend
ency expressed through method 'provide' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating be
an with name 'DefaultInputProject' defined in org.sonar.scanner.scan.InputProjectProvider: Unsatisfied dependency expressed through method 'provide' paramet
er 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProjectReactor' defined in org.sonar.scann
er.scan.MutableProjectReactorProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationExceptio
n: Failed to instantiate [org.sonar.api.batch.bootstrap.ProjectReactor]: Factory method 'provide' threw exception; nested exception is You must define the f
ollowing mandatory properties for 'Unknown': sonar.projectKey
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1228)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
    at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:187)
    at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
    at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:134)
    at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
    at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
    at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
    at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at com.sun.proxy.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
    at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
    at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'AnalysisTempFolder' defined in org.sonar.scanner
.analysis.AnalysisTempFolderProvider: Unsatisfied dependency expressed through method 'provide' parameter 0; nested exception is org.springframework.beans.f
actory.UnsatisfiedDependencyException: Error creating bean with name 'DefaultInputProject' defined in org.sonar.scanner.scan.InputProjectProvider: Unsatisfi
ed dependency expressed through method 'provide' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating be
an with name 'ProjectReactor' defined in org.sonar.scanner.scan.MutableProjectReactorProvider: Bean instantiation via factory method failed; nested exceptio
n is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.bootstrap.ProjectReactor]: Factory method 'provide' th
rew exception; nested exception is You must define the following mandatory properties for 'Unknown': sonar.projectKey
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
... 31 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'DefaultInputProject' defined in org.sonar.scanne
r.scan.InputProjectProvider: Unsatisfied dependency expressed through method 'provide' parameter 2; nested exception is org.springframework.beans.factory.Be
anCreationException: Error creating bean with name 'ProjectReactor' defined in org.sonar.scanner.scan.MutableProjectReactorProvider: Bean instantiation via 
factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.bootstrap.Projec
tReactor]: Factory method 'provide' threw exception; nested exception is You must define the following mandatory properties for 'Unknown': sonar.projectKey
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
... 45 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProjectReactor' defined in org.sonar.scanner.scan.Mutable
ProjectReactorProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to in
stantiate [org.sonar.api.batch.bootstrap.ProjectReactor]: Factory method 'provide' threw exception; nested exception is You must define the following mandat
ory properties for 'Unknown': sonar.projectKey
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
... 59 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.bootstrap.ProjectReactor]: Factory method 'provi
de' threw exception; nested exception is You must define the following mandatory properties for 'Unknown': sonar.projectKey
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
... 73 more
Caused by: You must define the following mandatory properties for 'Unknown': sonar.projectKey

Hi,

There are two things going on here. First:

Analysis needs a unique id (sonar.projectKey) for the project to either create the project in SonarQube with the first analysis or to update an existing project. You apparently haven’t set that.

Even if you do, though, analysis will still fail. Why?

(emphasis mine)

This combination won’t work. To analyze .Net, you need to use the Scanner for .Net. When you do it will automatically pick up your sonar.projectKey value from your solution, BTW.

The docs will get you started with that scanner.

 
HTH,
Ann