maven-checkstyle-plugin

Could not find artifact com.sun:tools:jar:0

风格不统一 提交于 2020-03-10 05:04:11
问题 I'm trying to use checkstyle and findbugs by doing mvn checkstyle:checkstyle but I have this error This error [ERROR] Failed to execute goal on project my-project: Could not resolve dependencies for project default:my-project:jar:1.1: Could not find artifact com.sun:tools:jar:0 at specified path C:\Program Files\Java\jdk-11.0.2/../lib/tools.jar -> [Help 1] I do not have a tools.jar into my JDK (i have jdk-11.0.2). I'm on it since 2H, please help :/ 回答1: You're on JDK 11. The JEP 220 removed

Difference with Checkstyle and PMD configuration in maven parent module

别等时光非礼了梦想. 提交于 2019-12-10 14:01:56
问题 I have a java application with maven having below structure: parent | - pom.xml | - child | - pom.xml | - analyzers | - pmdrules.xml | - checkstyle.xml I have configured both PMD and checkstyle in parent pom.xml. For PMD the rulesets are configured as below, and it works fine both for parent and child modules: <configuration> <rulesets> <ruleset>${basedir}/../analyzers/pmdrules.xml</ruleset> </rulesets> </configuration> However, for checkstyle if I configure configLocation in the same way, it