How To Use as a plugin

<project>
<build>
<plugins>
        <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>maven-springbeandoc-plugin</artifactId>
                <version>1.0.8-SNAPSHOT</version>
                <executions>
                        <execution>
                                <phase>pre-site</phase>
                                <goals>
                                        <goal>springbeandoc</goal>
                                </goals>
                        </execution>
                </executions>
                <configuration>
                  <!-- Any number of directories with Spring context files -->
                        <sourceDirectories>
                          <sourceDirectory>
                          </sourceDirectory>
                        </sourceDirectories>
                        <!-- Include patterns -->
                        <includes>
                          <include>**/*-context.xml</include>
                          <include>**/*-spring.xml</include>
                        </includes>
                        <!-- xml file or directory containing xml files -->
                        <resources>
                                <resource>src/test/resources/beandocxmldir/spring.xml</resource>
                        </resources>
                        <!-- html title (optional) -->
                        <title>Spring BeanDoc Plugin 1.0.8-SNAPSHOT Bean docs</title>
                        <!-- optional stylesheet to use -->
                        <cssUrl>stylesheet.css</cssUrl>
                        <!-- location of api docs (optional) -->
                        <javadocLocations>
                                <javadocLocation>
                                        <packagename>org.codehaus.mojo.springbeans</packagename>
                                        <location>/home/marat/workspace/maven-springbeandoc-plugin/target/site/apidocs</location>
                                </javadocLocation>
                        </javadocLocations>
                        <!-- location of exe for image generation (alias graphViz) -->
                        <executable>C:/Program Files/ATT/Graphviz/bin/dot.exe</executable>
                        <!-- Graph output types. Default is png. Use png, jpg, gif, svg. -->
                        <graphsOutputType>png</graphsOutputType>
                        <!-- you can have the XML parser not bother to validate the input files against the DTD if you so wish. True by default. -->
                        <validate>false</validate>
                </configuration>
        </plugin>
.
.
.

How To Use as a site report

<project>
<reporting>
<plugins>
        <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>maven-springbeandoc-plugin</artifactId>
                <version>1.0.8-SNAPSHOT</version>
                <configuration>
                        <!-- xml file or directory containing xml files -->
                        <resources>
                                <resource>src/test/resources/beandocxmldir/spring.xml</resource>
                        </resources>
                        <!-- html title (optional) -->
                        <title>Spring BeanDoc Plugin 1.0.8-SNAPSHOT Bean docs</title>
                        <!-- optional stylesheet to use -->
                        <cssUrl>stylesheet.css</cssUrl>
                        <!-- location of api docs (optional) -->
                        <javadocLocations>
                                <javadocLocation>
                                        <packagename>org.codehaus.mojo.springbeans</packagename>
                                        <location>/home/marat/workspace/maven-springbeandoc-plugin/target/site/apidocs</location>
                                </javadocLocation>
                        </javadocLocations>
                        <!-- location of exe for image generation (alias graphViz) -->
                        <executable>C:/Program Files/ATT/Graphviz/bin/dot.exe</executable>
                        <!-- Graph output types. Default is png. Use png, jpg, gif, svg. -->
                        <graphsOutputType>png</graphsOutputType>
                        <!-- you can have the XML parser not bother to validate the input files against the DTD if you so wish. True by default. -->
                        <validate>false</validate>
                </configuration>
        </plugin>
</plugins>
</reporting>
</project>