Source code vs compile scanning

Must-share information (formatted with Markdown):

  • Community Edition Version 8.9.9
  • when i use “mvn compile sonar:sonar -DskipTests” from cmd i get a lot of error so i would like to scan without compile, is possible if yes how, please note i am scanning java code and i can get the war file
  • is the result of scan will be different if the scan only source without compile and if yes why please


Compilation is required for analysis. Your first priority should be fixing the compile errors. Only once you have a clean compile should you worry about analysis.