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

|-- 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".


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