private Exception getExecutionException(ExecutionEvent event) { // http://issues.jenkins-ci.org/browse/JENKINS-8493 // with maven 3.0.2 see http://jira.codehaus.org/browse/MNG-4922 // catch NoSuchMethodError if folks not using 3.0.2+ try { return event.getException(); } catch (NoSuchMethodError e) { return new MojoExecutionException(event.getMojoExecution()+" failed"); } }
mavenReporter.postExecute( mavenBuildProxy2, mavenProject, mojoInfo, maven3Builder.listener, event.getException() ); } catch (NoSuchMethodError e) { mavenReporter.postExecute( mavenBuildProxy2, mavenProject, mojoInfo, maven3Builder.listener, null );
if(executionEvent.getException() != null) { root.addChild(newElement("exception", executionEvent.getException()));