No DSM data available for the component (Gradle Multi-Project)

ぃ、小莉子 提交于 2019-12-13 01:29:35

问题


I have just upgraded to Sonarqube 5 (from a very old 2.14).

When building a (new) project (multi-project gradle build, with gradle 2.3-rc-3), the build is successful and I see code violations ok on the sonar console.

When I click on the Design link, I get

No DSM data available for the component

After looking for similar questions/answers, I have checked ./build/tmp/sonarRunner/sonar-project.properties and it contains <project>.sonar.binaries entries which look correct.

UPDATE:

I just tried with a clean 5.0 install; same result. So I installed 4.5.2 (again a new, clean, db) and it works fine, so it looks like it's an issue with 5.0 only.

I am building spring-amqp from this branch with...

./gradlew build sonarRunner -Dsonar.host.url=http://xxxxx:9000 \ 
  -Dsonar.jdbc.url=jdbc:oracle:thin:@xxxxx:1521/XE \
  -Dsonar.jdbc.username=xxxxx -Dsonar.jdbc.password=xxxxx 

回答1:


Because of the optimization done on SONAR-5672, the DSM is not displayed when there's no dependency at all - which is indeed problematic on non-Maven projects because you can't drilldown on lower levels directly from the root project.

We'll fix this in 5.1 with SONAR-6176.



来源:https://stackoverflow.com/questions/28415418/no-dsm-data-available-for-the-component-gradle-multi-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!