Hi All I've configured checkstyle in my project and i can generate the Checkstyle reports when I issue a "mvn checkstyle:checkstyle" but my requirement is to generate the checkstyle reports once i do a "clean build as well" I've pasted the high level pom below. appreciate if you guys could point out what i'm doing wrong. I couldn't find a solution for this my searching the web. Thanks
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.4.ga</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<consoleOutput>true</consoleOutput>
<configLocation>
checkstyle.xml
</configLocation>
</configuration>
<goals>
<goal>check</goal>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>
checkstyle.xml
</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
--
View this message in context:
http://www.nabble.com/checkstyle-reports-won%27t-generate-with-a-mvn-clean-install-tp23632592p23632592.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]
