diff --git a/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java b/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java index 60be37ad3d..358fbc1743 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java +++ b/maven-core/src/main/java/org/apache/maven/execution/project/MavenProjectExecutionRequestHandler.java @@ -20,39 +20,27 @@ public class MavenProjectExecutionRequestHandler public void handle( MavenExecutionRequest request, MavenExecutionResponse response ) throws Exception { - Date start = null; - - Date finish = null; - try { MavenProject project = getProject( ( (MavenProjectExecutionRequest) request ).getPom(), request.getLocalRepository() ); - start = new Date(); + response.setStart( new Date() ); response = lifecycleManager.execute( createSession( request, project ) ); + + response.setFinish( new Date() ); } catch ( Exception e ) { - finish = new Date(); + response.setFinish( new Date() ); response.setException( e ); - response.setStart( start ); - - response.setFinish( finish ); - logError( response ); return; } - finish = new Date(); - - response.setStart( start ); - - response.setFinish( finish ); - if ( response.isExecutionFailure() ) { logFailure( response );