log.error("Failed to execute goals", e);
// HACK: Strip out the entire log which is included in the message by default! :-(
File logFile = new File(getBasedir(), getLogFileName());
if (logFile.exists()) {
throw new VerificationException(
"Goals execution failed: " + goals + "; see log for more details: " + logFile.getAbsolutePath(),
e.getCause());
}
else {
// HACK: seems like maven-verifier is pretty bad about ensure there is a log file for the execution
throw new VerificationException("Goals execution failed: " + goals + "; log file missing!", e.getCause());
}
}
}
};
verifier.setLogFileName(mavenDeployment.getLogFileName());