sbt-checkstyle-plugin icon indicating copy to clipboard operation
sbt-checkstyle-plugin copied to clipboard

Problem with apache commons-cli

Open tzimisce012 opened this issue 7 years ago • 3 comments

I have multi-module project. When I try to use checkstyle in any of my submodules I am getting the following error:

java.lang.NoSuchMethodError: org.apache.commons.cli.Options.hasShortOption(Ljava/lang/String;)Z

Any idea?

tzimisce012 avatar Nov 08 '17 22:11 tzimisce012

This is most probably caused by conflict with another plugin. I've got this when used Swagger Codegen and this plugin in the same project.

I think this can be solved by adding a separate Configuration for every plugin.

pelepelin avatar Jan 22 '18 20:01 pelepelin

Yes, I am using swagger codegen in this project...

tzimisce012 avatar Jan 22 '18 22:01 tzimisce012

Checkstyle 8.15 will use picocli instead of Apache Commons CLI, so that problem should go away.

remkop avatar Nov 08 '18 11:11 remkop