Maven skip site/reporting for module
You can also ignore report generation with:
mvn -Dmaven.site.skip=true clean install for example
You can also ignore report generation on the command line:
mvn -DgenerateReports=false package
Have you tried (in child pom)?:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
Update. You can use property to redefine default behavior. Keep your children poms simple.
In parent pom set (pluginManagement or plugins section)
<properties>
<maven-site-plugin.skip>false</maven-site-plugin.skip>
</properties>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.1</version>
<configuration>
<skip>${maven-site-plugin.skip}</skip>
</configuration>
</plugin>
In parent pom just redefine maven-site-plugin.skip
:
<properties>
<maven-site-plugin.skip>true</maven-site-plugin.skip>
</properties>