jactor
2008-05-06 14:47:42 UTC
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
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.
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
Cobertura: Loaded information on 30 classes.children.project.jar
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.
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.