public void execute()

in src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java [68:89]


    public void execute() throws MojoExecutionException, MojoFailureException {
        try {
            AbstractScriptEvaluator execute = constructExecute();

            Bindings bindings = new SimpleBindings();
            bindings.put("project", project);
            bindings.put("log", getLog());

            Object result = execute.eval(bindings, getLog());

            getLog().info("Result:");
            if (result != null) {
                getLog().info(result.toString());
            }
        } catch (ScriptException e) // configuring the plugin failed
        {
            throw new MojoExecutionException(e.getMessage(), e);
        } catch (UnsupportedScriptEngineException e) // execution failure
        {
            throw new MojoFailureException(e.getMessage(), e);
        }
    }