Maven Xhtml Plug-in

This plug-in validates the xhtml code in project documentation and generates a report with the details of all the errors found. For a sample report see the report generated for this site

The Xhtml plugin requires at least maven 1.0 rc2 to work.

How to

To add the xhtml validation report to your maven site, simply do the following:

  1. Add the following dependency to your project.xml:
              	
    <dependency>
        <groupId>maven-validator</groupId>
        <artifactId>maven-xhtml-plugin</artifactId>
        <version>1.2</version>
        <type>plugin</type>
    </dependency>
                
    
  2. Add the report <report>maven-xhtml-plugin</report> to the reports section in your project.xml

If the latest version of the xhtml plugin is not yet in the central repository at ibiblio (this could take some time, after a new release), you will need to add maven.repo.remote = http://www.ibiblio.org/maven/,http://maven-validator.sourceforge.net/maven to your project.properties.