【发布时间】:2017-09-04 07:46:33
【问题描述】:
我的 Ubuntu 17 桌面上运行着 Intellij 2017.2.3 和 Checkstyle-IDEA 5.10.0。当我尝试为我的 Java 项目添加 checkstyle 时(在 Settings->Other settings->Checkstyle)我收到以下错误消息:
java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:963)
at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:391)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:217)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.contextualize(AutomaticBean.java:249)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:455)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:186)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:58)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:26)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.executeCommand(CheckstyleActionsImpl.java:126)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:56)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:47)
at org.infernus.idea.checkstyle.checker.CheckerFactoryWorker.run(CheckerFactoryWorker.java:44)
有人熟悉吗?
【问题讨论】:
-
您可以通过github.com/checkstyle/checkstyle/issues 报告此问题。
-
由于这发生在 IDEA 内部,他们应该是您的第一个联系人,因为包含
commons-collections的 Checkstyle 的发布版本可以正常工作。 github.com/jshiell/checkstyle-idea -
提出issue with Checkstyle-IDEA。他们会想知道当您从命令行运行 Checkstyle 时是否会发生这种情况。提供完整的配置文件。
标签: java ubuntu intellij-idea checkstyle