code: public void generate(Sink sink, Locale locale) throws MavenReportException {
          final boolean shouldSkip = Boolean.parseBoolean(System.getProperty("dependency-check.skip", Boolean.toString(skip)));
          if (shouldSkip) {
              getLog().info("Skipping report generation " + getName(Locale.US));
              return;
          }
  
          generatingSite = true;
          project.setContextValue("dependency-check-output-dir", getReportOutputDirectory());
          try {
              runCheck();
          } catch (MojoExecutionException ex) {
              throw new MavenReportException(ex.getMessage(), ex);
          } catch (MojoFailureException ex) {
              getLog().warn("Vulnerabilities were identifies that exceed the CVSS threshold for failing the build");
          }
      }
docs: Generates the Dependency-Check Site Report.
  
  @param sink the sink to write the report to
  @param locale the locale to use when generating the report
  @throws MavenReportException if a maven report exception occurs