Excluding Document Formats

To exclude specific document formats from the generated site, you can use the excludeModules parameter.

For example, you have the following site content in your POM

Module1
|-- src
|   |-- main
|   `-- site
|       |-- apt
|       |   `-- sample-apt.apt
|       `-- fml
|           `-- sample-fml.fml
`-- pom.xml

and you want to exclude all the documents in the fml format from the generated site, you need to set the following in your POM and then execute "mvn site".

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>2.0</version>
        <configuration>
          <excludeModules>fml</excludeModules>
        </configuration>
      </plugin>
    </plugins>
  </build>
  ...
</project>

You will see that no sample-fml.html will be present in the generated site.