Sonarqube 分析 org.joda.convert 错误 [英] Sonarqube Analysis org.joda.convert ERROR

查看:24
本文介绍了Sonarqube 分析 org.joda.convert 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会出现这个错误:

Why do I get this error:

找不到类:org.joda.convert.ToString

Class not found: org.joda.convert.ToString

我的代码都没有使用这个类(基于 maven 的声纳分析),它似乎不影响分析.但是,每当输出中有 "[ERROR]" 日志时,我都会担心.我的确切命令是:

None of my code uses this class (maven-based sonar analysis), and it doesn't seem to affect the analysis. However, I get worried whenever there are "[ERROR]" logs in the output. My exact command is:

mvn org.codehaus.mojo:sonar-maven-plugin:2.6:sonar

我切换到这个是因为另一个相关答案中的人建议这个......

I switched to this because someone in another related answer suggested this...

推荐答案

每当分析器在语义分析期间尝试完成符号并且找不到 .class 文件时,都会记录此错误消息.

This error message is logged by the analyzer whenever it tries to complete a symbol during semantic analysis and cannot find a .class file.

无论您的类是直接使用还是传递使用此类(通过依赖项或依赖项的依赖等),都会发生这种情况.在所有情况下,这可以说是一个错误,但这是用户需要知道的重要信息,因为缺少某些类可能导致不完整的结果(某些问题可能不会引发,因为符号不会被解析).

This will happen wether your classes are using this class directly or transitively (via a dependence, or a dependence of a dependence, etc.). This is arguably an error per say in all cases but this is an important information for users to know because lacking some classes can lead to incomplete results (some issues might not be raised because symbols won't be resolved).

这篇关于Sonarqube 分析 org.joda.convert 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆