dependency-check-maven/src/main/java/org/owasp/dependencycheck/maven/AggregateMojo.java
/**
     * Initializes the engine.
     *
     * @return the Engine used to execute dependency-check
     * @throws MojoExecutionException thrown if there is an exception running
     * the Mojo
     * @throws MojoFailureException thrown if dependency-check is configured to
     * fail the build if severe CVEs are identified.
     */
Initializes the engine.
@return the Engine used to execute dependency-check
@throws MojoExecutionException thrown if there is an exception running
the Mojo
@throws MojoFailureException thrown if dependency-check is configured to
fail the build if severe CVEs are identified.
Initializes the engine . @return the Engine used to execute dependency - check @throws MojoExecutionException thrown if there is an exception running the Mojo @throws MojoFailureException thrown if dependency - check is configured to fail the build if severe CVEs are identified .
protected Engine loadEngine() throws MojoExecutionException, MojoFailureException {
        Engine engine = null;
        try {
            engine = initializeEngine();
        } 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, ex);
        }
        return engine;
    }
protected Engine loadEngine ( ) throws MojoExecutionException , MojoFailureException { Engine engine = null ; try { engine = initializeEngine ( ) ; } 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 , ex ) ; } return engine ; }
Initializes the engine.
Initializes the engine .