Not able to build with Sonar scanner

  • which versions are you using (SonarQube * Version 9.9 (build 65466), Scanner 3.9.1, Plugin, and any relevant extension)

  • how is SonarQube deployed: zip, Docker, Helm

  • what are you trying to achieve: I am trying to execute the below command in Terminal from my IntelliJ

  • what have you tried so far to achieve this
    mvn sonar:sonar -Dsonar.login=“token generated from Sonarqube for project”

Error Message:

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project EMMA_DMI: 
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.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.factory.BeanCreationException:
Error creating bean with name 'DefaultInputProject' defined in org.sonar.scanner.scan.InputProjectProvider:
Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.sonar.api.batch.fs.internal.DefaultInputProject]: 
Factory method 'provide' threw exception; nested exception is java.nio.charset.UnsupportedCharsetException: UFT-8 -> [Help 1]

Hi,

Welcome to the community!

I would be surprised if you succeeded in running analysis from IntelliJ. You need to do this from a (vanilla) command line or - even better - from your CI/CD.

If you still have problems from a vanilla command line, please post your full analysis log (the output of the command), starting with the command itself.

 
Ann