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 Reply

邮箱地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>