erreur avec conf de maven-checkstyle-plugin
Bonjour à tous,
Dans le cadre d'un article que j'écris, je voudrais utiliser le plugin maven-checkstyle-plugin en version 2.7 avec Maven 3.
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin> |
Pour créer le fichier "checkstyle.xml", j'utilise le plugin CS pour Eclipse indigo, avec mes règles personnalisées. Ca marche très bien dans Eclipse, du coup j'exporte le fichier.
mais quand je lance la commande
J'ai l'erreur suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
[INFO] Generating "Checkstyle" report --- maven-checkstyle-plugin:2.7
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.072s
[INFO] Finished at: Tue Sep 27 13:03:36 CEST 2011
[INFO] Final Memory: 21M/52M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site (default-site) on project bout
ique: Error during page generation: Error rendering Maven report: Failed during checkstyle execution: Failed during chec
kstyle configuration: missing key 'cacheFile' in TreeWalker -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException |