'Cause build to fail for javadoc errors without actually generating documentation
I have a situation where I am configuring a CI/CD pipeline for JavaDocs for PR's and master build. On master I am using the maven javadoc plugin to generate the entire documentation using mvn site. This takes a really long time to build documentation around an hour. Since there are too many PRs I would like to avoid building the entire documentation against each individual PR, but would like the build on PR to fail if there are any errors on JavaDoc, just compiling and not generating the entire documentation like on master to save time. Is this possible with the maven javadoc plugin.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
