InvocationResult result = null;
final Invoker invoker = new DefaultInvoker();
invoker.setOutputHandler(null);
invoker.setWorkingDirectory(new File(path));
try {
result = invoker.execute(request);
} catch (MavenInvocationException ex) {
final String messageError = "Maven exception: " + ex.getMessage();
handler.emitError(messageError, messageError);
InstallLog.getInstance().info(messageError);
}