Java – error: unable to initialize module treewalker – unable to instantiate junittestcase

After importing Maven project into eclipse Luna, the following error will pop up when saving after modifying the method:

Junittestcase refers to a module in the checkstyle XML file:

<module name="JUnitTestCase"/>

I have installed "checkstyle configuration plug-in m2eclipse" and "checkstyle plug in 6.4.0" The plugin definition of 'maven checkstyle plugin' in my POM file specifies version 2.10

Note: I realize that this is similar to some other problems, with the same error (but different modules are specified), but I haven't found a satisfactory solution yet I believe I can delete the module entry in the checkstyle configuration file, but I ask it to work according to the design, which is not the best choice

Solution

Junittestcase is removed in checkstyle 6.2 So you should downgrade to checkstyle 6.1 1, or from checkstyle Delete module reference from XML

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>