javamavennetbeanscheckstylenetbeans-8.2

NetBeans (maven) project: checkstyle-beans vs maven-checkstyle-plugin


There are at least two ways of using the checkstyle in the NetBean maven project
(at the time of 2019-07-24):

The last version of the github.com/checkstyle itself is v8.22

Questions:

  1. Can I update them both to the last checkstyle?
  2. Does they completely independent ?
    • the checkstyle-beans shows the marks beside the line numbers in the IDE
    • the maven-checkstyle-plugin can be used for the manual launch in the console, outside the IDE (mvn -e checkstyle:check).
      Can it be configured and used inside the IDE ?

Solution

  • 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: