ERROR: Error during SonarQube Scanner execution ERROR: You must define the following mandatory properties for 'Unknown': sonar.projectKey

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
  • error observed (wrap logs/code around triple quote ``` for proper formatting)
  • steps to reproduce
  • potential workaround

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

I am facing the following problem, follows the image below … I have already configured the file, but still giving it, can anyone help me?

Hi @Joana_Carrasco

Please specify:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
  • give the commands you are using
  • share with us the full logs for each command
  • share with us the configuration files you are using (removing the sensitive information like tokens and passwords)

Thanks for the feedback, but I already decided … I needed to be running on the path where the project was. It worked …