etsy / sbt-checkstyle-plugin

SBT Plugin for Running Checkstyle on Java Sources
MIT License
32 stars 25 forks source link

Problem with apache commons-cli #30

Open tzimisce012 opened 6 years ago

tzimisce012 commented 6 years ago

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?

pelepelin commented 6 years ago

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.

tzimisce012 commented 6 years ago

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

remkop commented 5 years ago

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