【发布时间】:2013-09-09 12:53:12
【问题描述】:
环境:Java/Linux/Gradle 1.6/Jenkins 最新
gradle clean build jacocoTestReport sonarRunner - 工作正常。
在 sonarRunner 任务期间,当 sonarRunner 尝试将数据发布到 Sonar 自己的数据库 (org.h2.jdbc..) 时,我看到以下缺少的类/行
我在输出中看到以下几行。我该怎么做才能使这些丢失的项目最终不会在 sonarRunner 任务/步骤中显示出来。
11:15:47 11:15:47.076 INFO - Findbugs output report: /production/jenkinsAKS/jobs/CAPersonSvc/workspace/build/sonar/findbugs-result.xml
11:15:55 The following classes needed for analysis were missing:
11:15:55 org.springframework.context.ApplicationContext
11:15:55 org.springframework.context.support.ClassPathXmlApplicationContext
11:15:55 javax.crypto.SecretKey
11:15:55 javax.crypto.spec.PBEKeySpec
11:15:55 javax.crypto.SecretKeyFactory
11:15:55 javax.crypto.spec.PBEParameterSpec
11:15:55 javax.crypto.Cipher
11:15:55 javax.crypto.KeyGenerator
11:15:55 javax.crypto.spec.IvParameterSpec
11:15:55 javax.crypto.spec.SecretKeySpec
11:15:55 11:15:55.245 INFO - Execute Findbugs 2.0.1 done: 10991 ms
11:15:55 11:15:55.247 INFO - Sensor FindbugsSensor done: 10994 ms
谢谢
【问题讨论】:
-
您是否在构建文件中将 javax crypto 和 spring 定义为依赖项?
-
否,因为构建工作正常。这是在 sonarRunner 任务期间出现的
-
这些类是你自己的代码直接使用的吗?
-
回答Fabrice,不。在编译/测试/战争包操作期间,我们没有使用任何这些 jar。顺便说一句,JarFinder.com 没有向我展示 javax.crypto.* 的 jar,除了 javax.crypto.Cipher 要回答皮特,我不这么认为。
标签: gradle sonarqube analysis sonar-runner