提交 188ed709 编写于 作者: O Olivier Lamy

[HUDSON-8493] MavenReporter#postExecute parameter Throwable error is always...

[HUDSON-8493] MavenReporter#postExecute parameter Throwable error is always empty in case of mojo failure
上级 c9391109
......@@ -620,10 +620,14 @@ public class Maven3Builder extends AbstractMavenBuilder implements DelegatingCal
if (mavenReporters != null) {
for (MavenReporter mavenReporter : mavenReporters) {
try {
// TODO get exception during mojo execution ?
// http://issues.hudson-ci.org/browse/HUDSON-8493
// with maven 3.0.2 see http://jira.codehaus.org/browse/MNG-4922
// catch NoSuchMethodError if folks not using 3.0.2+
mavenReporter.postExecute( mavenBuildProxy2, mavenProject, mojoInfo, maven3Builder.listener, null );
try {
mavenReporter.postExecute( mavenBuildProxy2, mavenProject, mojoInfo, maven3Builder.listener, event.getException() );
} catch (NoSuchMethodError e) {
mavenReporter.postExecute( mavenBuildProxy2, mavenProject, mojoInfo, maven3Builder.listener, null );
}
} catch ( InterruptedException e ) {
e.printStackTrace();
} catch ( IOException e ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册