1、mvn上传sonar无法通过
1)错误信息
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project public-loan-model: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.
2)错误截图
3)解决方法
在执行mvn的时候只编译
mvn compile sonar:sonar -Dsonar.projectKey=xxxx -Dsonar.host.url=http://sonar.xxxx.com -Dsonar.login=xxxx"