Reports are only generated when you run a site or site-deploy build. You could either do something like "mvn clean site" or "mvn clean install checkstyle:checkstyle"
I think that the lifecycle doc would explain it better, but I'm having troubles loading the page right now http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html HTH Jim On Wed, May 20, 2009 at 6:09 AM, zac001 <zac...@gmail.com> wrote: > > 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >