Hi!

I just fixed up our checkstyle setup for our multi module project using a different approach than mention on the site. Maybe this should be included as a tip on the plugin site.

Here is what I did.

Our subversion repository is http browsable. So in my parent pom I got

<properties>
<repository>http://subversion1.cardiocomm.com/repository/bluebox/trunk</repository>
</properties>

....

<reporting>
<plugins>

<!-- Checkstyle report  -->
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-checkstyle-plugin</artifactId>
  <configuration>
    <configLocation>${repository}/ccs-checkstyle.xml</configLocation>
    <headerLocation>${repository}/LICENSE.txt</headerLocation>
  </configuration>
</plugin>


For the header file to work your checkstyle xml file has to contain
the property as below.

<module name="Header">
<property name="headerFile" value="${checkstyle.header.file}"/>
<property name="severity" value="info"/>
</module>

I found this a bit easier to setup than the proposed build tool approach. I hope this helps.

Manfred



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to