Excluding Document Formats

To exclude specific document formats from the generated site, you can use the moduleExcludes 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>4.0.0-M16</version>
        <configuration>
          <moduleExcludes>
            <fml>*.fml</fml>
          </moduleExcludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
  ...
</project>

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

See the documentation of the moduleExcludes Mojo parameter for more details.