diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java index f3909ed359..1367ca1e00 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java @@ -242,24 +242,20 @@ public class DefaultLifecycleExecutor catch ( MojoExecutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, rootProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } catch ( ArtifactResolutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, rootProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } catch ( MojoFailureException e ) { - handleExecutionFailure( rm, rootProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } catch ( ArtifactNotFoundException e ) { - handleExecutionFailure( rm, rootProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } } @@ -330,24 +326,20 @@ public class DefaultLifecycleExecutor catch ( MojoExecutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, currentProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } catch ( ArtifactResolutionException e ) { // TODO: should this be removed? - handleExecutionFailure( rm, currentProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } catch ( MojoFailureException e ) { - handleExecutionFailure( rm, currentProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } catch ( ArtifactNotFoundException e ) { - handleExecutionFailure( rm, currentProject, e, task, - System.currentTimeMillis() - buildStartTime ); + handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } }