Add the plugin to your POM's plugin configuration and also add the Spring Surf Maven repository reference to your POM's repository configuration.
...
<repositories>
...
<repository>
<id>spring-extensions-milestone</id>
<name>Spring Extensions Milestone Repository</name>
<url>http://extensions.springframework.org/milestone</url>
</repository>
<repository>
<id>spring-extensions-snapshot</id>
<name>Spring Extensions Snapshot Repository</name>
<url>http://extensions.springframework.org/snapshot</url>
</repository>
...
</respositories>
...
<build>
<plugins>
....
<plugin>
<groupId>org.springframework.extensions.surf</groupId>
<artifactId>spring-surf-doc-plugin</artifactId>
<version>1.0.0.CI-SNAPSHOT</version>
<dependencies>
<!-- Required dependencies -->
<dependency>
<groupId>org.springframework.extensions.surf</groupId>
<artifactId>spring-surf-api</artifactId>
<version>1.0.0.CI-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<version>3.1.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generatewsdoc</id>
<phase>pre-site</phase>
<configuration>
<!-- Output directory of the generated DocBook XML -->
<outputFilename></outputFilename>
<!-- Name of the generated DocBook XML -->
<outputDirectory></outputDirectory>
<!-- Additional search pathes for local web scripts -->
<localWebscriptPath>
<param></param>
.....
<param></param>
</localWebscriptPath>
<!-- Turn on/off local webscript scanning -->
<localWebscriptOnly></localWebscriptOnly>
<!-- Additional Spring context XMLs -->
<contextXML>
<param></param>
.....
<param></param>
</contextXML>
<!-- DocBook Document Type -->
<docBookDocumentType></docBookDocumentType>
<!-- DocBook Element Type -->
<itemElementType></itemElementType>
</configuration>
<goals>
<goal>generate-webscript-doc</goal>
</goals>
</execution>
<execution>
<id>generatejsdoc</id>
<phase>pre-site</phase>
<configuration>
<!-- Output directory of the generated DocBook XML -->
<outputFilename></outputFilename>
<!-- Name of the generated DocBook XML -->
<outputDirectory></outputDirectory>
<!-- Additional Spring context XMLs -->
<contextXML>
<param></param>
.....
<param></param>
</contextXML>
<!-- DocBook Document Type -->
<docBookDocumentType></docBookDocumentType>
<!-- DocBook Element Type -->
<itemElementType></itemElementType>
<!-- Method Skipping Option -->
<skipUnannotatedMethods></skipUnannotatedMethods>
</configuration>
<goals>
<goal>generate-javascript-doc</goal>
</goals>
</execution>
<execution>
<id>generatetpdoc</id>
<phase>pre-site</phase>
<configuration>
<!-- Output directory of the generated DocBook XML -->
<outputFilename></outputFilename>
<!-- Name of the generated DocBook XML -->
<outputDirectory></outputDirectory>
<!-- Additional Spring context XMLs -->
<contextXML>
<param></param>
.....
<param></param>
</contextXML>
<!-- DocBook Document Type -->
<docBookDocumentType></docBookDocumentType>
<!-- DocBook Element Type -->
<itemElementType></itemElementType>
<!-- Method Skipping Option -->
<skipUnannotatedMethods></skipUnannotatedMethods>
</configuration>
<goals>
<goal>generate-template-doc</goal>
</goals>
</execution>
<execution>
<id>generatejsapidoc</id>
<phase>pre-site</phase>
<configuration>
<!-- Output directory of the generated DocBook XML -->
<outputFilename></outputFilename>
<!-- Name of the generated DocBook XML -->
<outputDirectory></outputDirectory>
<!-- Additional Spring context XMLs -->
<contextXML>
<param></param>
.....
<param></param>
</contextXML>
<!-- DocBook Document Type -->
<docBookDocumentType></docBookDocumentType>
<!-- Package Scanning Patterns -->
<basePackages></basePackages>
<!-- DocBook Element Type -->
<itemElementType></itemElementType>
<!-- Method Skipping Option -->
<skipUnannotatedMethods></skipUnannotatedMethods>
<!-- Local resource scanning pattern -->
<localDirectoryScanPattern></localDirectoryScanPattern>
<!-- Turn on/off local resource scanning -->
<localDirectoryScanOption></localDirectoryScanOption>
</configuration>
<goals>
<goal>generate-javascript-api-doc</goal>
</goals>
</execution>
<execution>
<id>generatetpapidoc</id>
<phase>pre-site</phase>
<configuration>
<!-- Output directory of the generated DocBook XML -->
<outputFilename></outputFilename>
<!-- Name of the generated DocBook XML -->
<outputDirectory></outputDirectory>
<!-- Additional Spring context XMLs -->
<contextXML>
<param></param>
.....
<param></param>
</contextXML>
<!-- DocBook Document Type -->
<docBookDocumentType></docBookDocumentType>
<!-- Package Scanning Patterns -->
<basePackages></basePackages>
<!-- DocBook Element Type -->
<itemElementType></itemElementType>
<!-- Method Skipping Option -->
<skipUnannotatedMethods></skipUnannotatedMethods>
<!-- Local resource scanning pattern -->
<localDirectoryScanPattern></localDirectoryScanPattern>
<!-- Turn on/off local resource scanning -->
<localDirectoryScanOption></localDirectoryScanOption>
</configuration>
<goals>
<goal>generate-template-api-doc</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
For the plugin dependencies, the Spring Surf API, JSP API, Servlet and URL Rewriter Filter are required.
All plugin configuration parameters are optional. You only need to provide them if you don't want to use default settings.