Maven 2 checkstyle plugin version 2.5 - Problem with configLocation
Posted
by Nils Schmidt
on Stack Overflow
See other posts from Stack Overflow
or by Nils Schmidt
Published on 2010-02-17T10:23:12Z
Indexed on
2010/04/15
14:23 UTC
Read the original article
Hit count: 642
maven-2
|checkstyle
Hi there,
I am using checkstyle plugin in maven 2. I now want to switch my config file, from the default one to a) an online file, or b) a local file. I tried the following two things, which both didnt work. Any suggestions?
A) Local file, which is directly in my project folder next to the pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
B) Remote file, that is stored on a server
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>http://stud.hs-heilbronn.de/~nischmid/development/checkstyle-config.xml</configLocation>
</configuration>
</plugin>
Both cases result in an error like this:
[INFO] An error has occurred in Checkstyle report generation. Embedded error: Failed during checkstyle execution Could not find resource 'file:checkstyle.xml'.
Any help would be appreciated!
© Stack Overflow or respective owner