Maven 2 Checkstyle configLocation -


I have a project that has a jar file on Maven Dependency which contains an XML file, where I have set my rules in the checklist Has been archived for. I thought it would be ok to use this configuration only: & lt; ConfigLocation & gt; Mycheckstyle.xml & lt; / ConfigLocation & gt; My understanding is that the file should be searched on the classpath and my jar file is a Maven dependency, so it should be found, although I did not find any resources found exceptions. Any suggestions? Thanks in advance ..

KUKA

Adding a dependency section to your plugin Try the configuration.

For example,

  & lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-checkstyle-plugin & lt; / ArtifactId> & Lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Com.example.whizbang & lt; / Group & gt; & Lt; ArtifactId & gt; Construction Tools & lt; / ArtifactId> & Lt; Version & gt; 1.0 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt; & Lt; / Plugin & gt;  

See for more information.


Comments