There are at least two ways of using the checkstyle in the NetBean maven project
(at the time of 2019-07-24):
using the NetBeans's plugin checkstyle-beans
v4.1.0, last Update: 2016-02-09, uses Checkstyle v6.15.
The last declared supported version is NetBeans v8.1
*although it works with v8.2
using the Maven's plugin maven-checkstyle-plugin
v3.1.0, last Update: 2019-05-12, uses Checkstyle v8.19
The last version of the github.com/checkstyle itself is v8.22
Questions:
mvn -e checkstyle:check
).As a Netbeans user, you are stuck with Checkstyle-Beans as far as in-IDE support goes.
Maven and Checkstyle-Beans are completely independent of each other, but both depend on Checkstyle, of which they should use the same version.
This means you are also stuck with Checkstyle 6.15 (no upgrade unless Checkstyle-Beans gets a new version), which you must consequently use everywhere else also, or your Checkstyle configuration will not work (for example Checkstyle 6.15 config XMLs won't work with Checkstyle 8.22).
So, you have three options: