【问题标题】:The Findbugs configuration file is not valid Error While uploading rule file to sonarQubeFindbugs 配置文件无效 将规则文件上传到 sonarQube 时出错
【发布时间】:2023-03-31 17:18:01
【问题描述】:

在 sonarqube-4.1.2 中创建新配置文件时遇到问题。这是我做的:

  1. 我现在有声纳 3.1 rt,它有 461 条规则。备份并保存了包含 checkstyle 规则的规则文件。 pmd 和 findbug。
  2. 我确实尝试通过单击 4.1.2 中的“创建”来创建新配置文件。它给了我错误 The Findbugs configuration file is not valid : profile : profile [hide]
  3. 我还尝试恢复配置文件,但该配置文件也没有导入正确数量的规则。仅恢复 345 条规则。

在日志中我看到了这个错误:

ERROR [o.s.p.f.FindbugsProfileImporter]  The Findbugs configuration file is not valid
com.thoughtworks.xstream.mapper.CannotResolveClassException: profile : profile
        at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68) ~[xstream-1.3.1.jar:na]

请建议可以做些什么来解决这个问题。

【问题讨论】:

    标签: sonarqube


    【解决方案1】:

    我在搜索同一问题时发现了这个未回答的问题。不要使用创建,使用其上方的恢复配置文件链接进行配置文件备份。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-11
      • 2017-01-08
      • 1970-01-01
      • 2016-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-19
      相关资源
      最近更新 更多