Re: maven-checkstyle-plugin using project dependencies?
On 15.12.23 18:01, David Hoffer wrote: Is it possible to configure maven-checkstyle-plugin to use one of the project's modules as the source of the checkstyle XML file? E.g. I have the plugin configured like this: org.apache.maven.plugins maven-checkstyle-plugin ${maven-checkstyle-plugin.version} com.puppycrawl.tools checkstyle 10.12.3 com.bs.arm.a2dl a2dl-build-tools ${project.version} a2dl/google_checks.xml true true false verify-checkstyle verify check The problem is the plugin is looking in my .m2 folder or Maven proxy server for this dependency. com.bs.arm.a2dl a2dl-build-tools ${project.version} But it doesn't exist there yet as its a module of my/this project so its one of the modules in the Maven build reactor. Is it possible to configure the plugin to use the project modules for this? -Dave I would suggest to check the documentation: https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html Kind regards Karl Heinz Marbaise - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-checkstyle-plugin using project dependencies?
Op 15-12-2023 om 18:01 schreef David Hoffer: Is it possible to configure maven-checkstyle-plugin to use one of the project's modules as the source of the checkstyle XML file? E.g. I have the plugin configured like this: org.apache.maven.plugins maven-checkstyle-plugin ${maven-checkstyle-plugin.version} com.puppycrawl.tools checkstyle 10.12.3 com.bs.arm.a2dl a2dl-build-tools ${project.version} a2dl/google_checks.xml true true false verify-checkstyle verify check The problem is the plugin is looking in my .m2 folder or Maven proxy server for this dependency. com.bs.arm.a2dl a2dl-build-tools ${project.version} But it doesn't exist there yet as its a module of my/this project so its one of the modules in the Maven build reactor. Is it possible to configure the plugin to use the project modules for this? You could try adding it as a (test) scoped dependency to the project as well so the reactor knows when to build it. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org