I have an existing maven project in which site goal is executed to generate and upload site to repository location. I need to disable only this site generation and deployment part from my maven release. How can I achieve that with minimal changes in my pom. In the pom, we are using maven-site-plugin version 3.4 and don't have any overrides defined (i.e. everything is default inherited for this plugin).
I was able to find the solution for my problem. You can always override configurations for the plugins in your project POM file, which can override the configuration derived from parent POM file. You can use following user properties to disable site generation and site deployment:
I inserted following in my pom and it worked fine:
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<skip>true</skip>
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
You can see in the effective POM that these overrides were merged with the plugin configuration derived from parent pom.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With