You can merge the following configuration in your pom.xml to run the StatSCM Plugin everytime the project site is built.
<project> [...] <reporting> <plugins> [...] <plugin> <groupId>net.sf</groupId> <artifactId>stat-scm</artifactId> </plugin> </plugins> </reporting> [...] </project>
You can add some options to configure how StatSCM generates its reports when the project site is built. Not all options are shown below but a smattering of useful ones.
<project> [...] <reporting> <plugins> [...] <plugin> <groupId>net.sf</groupId> <artifactId>stat-scm</artifactId> <configuration> <includes> <include>**/*.java</include> <includes> <excludes> <exclude>**/test/**/*.java</exclude> </excludes> <nonDeveloperLogins> <nonDeveloperLogin>Admin Smith</nonDeveloperLogin> <nonDeveloperLogin>Oleg Developer</nonDeveloperLogin> </nonDeveloperLogins> <tags>3.0</tags> <tagsDir>/releases/</tagsDir> </configuration> </plugin> </plugins> </reporting> [...] </project>
You can add the 'skip' option to tell StatSCM to NOT generate any report in this project when the parent project includes StatSCM in its reports section. (Normally, without this, the reports for the parent are inheirited by the child.
<project> <parent> [...] </parent> [...] <reporting> <plugins> [...] <plugin> <groupId>net.sf</groupId> <artifactId>stat-scm</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </reporting> [...] </project>
Run the following command to build a project site. If the above report plugin setting includes StatSCM, the StatSCM report will be generated along with any others specified.
mvn site