No DSM data available for the component (Gradle Mu

2019-08-06 09:40发布

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条回答
老娘就宠你
2楼-- · 2019-08-06 10:10

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.

查看更多
登录 后发表回答