Hi!

I have configured maven to run a checkstyle when mvn site is used. Here is
the configuration:

     
  <modules>
    <module>children.project.jar</module>
    ...
  </modules>
  ...
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-checkstyle-plugin</artifactId>
      <configuration>
        <configLocation>checkstyle.xml</configLocation>
        <enableRulesSummary>true</enableRulesSummary>
      </configuration>
    </plugin>

However, it crashes when I use the config location. I have a main pom
projects which have the checkstyle.xml but it can not be found in the child
projects. Projects like this:

project.main.pom
> checkstyle.xml is located in this folder...
> children.project.jar
  > produses this error when mvn site is runned:

Cobertura: Loaded information on 30 classes.
Cobertura: Saved information on 30 classes.
[INFO] [site:site]
[INFO] Skipped "Maven Surefire Report" report, file "surefire-report.html"
already exists for the English version.
[INFO] Generating "Checkstyle" report.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Unable to find configuration
file location.
Unable to find location 'checkstyle.xml' as URL, File or Resource.
-- 
View this message in context: 
http://www.nabble.com/Checkstyle-configLocation-error-tp17084338p17084338.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to