code: @Override
      protected void runCheck() throws MojoExecutionException, MojoFailureException {
          try (Engine engine = initializeEngine()) {
              try {
                  if (!engine.getSettings().getBoolean(Settings.KEYS.AUTO_UPDATE)) {
                      engine.getSettings().setBoolean(Settings.KEYS.AUTO_UPDATE, true);
                  }
              } catch (InvalidSettingException ex) {
                  engine.getSettings().setBoolean(Settings.KEYS.AUTO_UPDATE, true);
              }
              engine.doUpdates();
          } catch (DatabaseException ex) {
              if (getLog().isDebugEnabled()) {
                  getLog().debug("Database connection error", ex);
              }
              final String msg = "An exception occurred connecting to the local database. Please see the log file for more details.";
              if (this.isFailOnError()) {
                  throw new MojoExecutionException(msg, ex);
              }
              getLog().error(msg);
          } catch (UpdateException ex) {
              final String msg = "An exception occurred while downloading updates. Please see the log file for more details.";
              if (this.isFailOnError()) {
                  throw new MojoExecutionException(msg, ex);
              }
              getLog().error(msg);
          }
      }
docs: Executes the dependency-check engine on the project's dependencies and
  generates the report.
  
  @throws MojoExecutionException thrown if there is an exception executing
  the goal
  @throws MojoFailureException thrown if dependency-check is configured to
  fail the build