in src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java [1949:1961]
private boolean runSelectorHook(File basedir, Map<String, Object> context, FileLogger logger)
throws MojoExecutionException, RunFailureException {
try {
scriptRunner.run("selector script", basedir, selectorScript, context, logger);
} catch (ScriptReturnException e) {
return false;
} catch (ScriptException e) {
throw new RunFailureException(BuildJob.Result.ERROR, e);
} catch (IOException e) {
throw new MojoExecutionException(e.getMessage(), e);
}
return true;
}