Please provide compiled classes of your project with sonar.java.binaries property

解决办法:

mvn命令添加sonar.java.binaries参数:

mvn sonar:sonar \
  -Dsonar.projectKey=fastjson \
  -Dsonar.host.url=http://127.0.0.1:9000 \
  -Dsonar.login=637e914c5ycyzharry6b690e765cffa7841f4aae \
  -Dsonar.java.binaries=target/classes

若target目录下没有生成classes目录,可以先build下项目,也可以直接写如下路径:

mvn sonar:sonar -Dsonar.java.binaries=target/sonar

Leave a comment