From 72a993eea1e52951cfe2040d316d1a4c055599af Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Mon, 7 Mar 2005 19:21:38 +0000 Subject: [PATCH] remove old code related to the previous goal structure git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163469 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/execution/MavenSession.java | 16 ---------------- .../org/apache/maven/test/SurefirePlugin.java | 7 +------ 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java b/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java index 2215161681..f4e0a004ec 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java +++ b/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java @@ -134,22 +134,6 @@ public class MavenSession return container.lookup( role, roleHint ); } - // TODO: can remove when phases are gone - public void release( Object component ) - { - if ( component != null ) - { - try - { - container.release( component ); - } - catch ( Exception e ) - { - //@todo what to do here? - } - } - } - public EventDispatcher getEventDispatcher() { return eventDispatcher; diff --git a/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java b/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java index 11b61b4884..e121626be1 100644 --- a/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java +++ b/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java @@ -16,11 +16,6 @@ import java.util.StringTokenizer; * * @description Run tests using surefire * - * @prereq compiler:compile - * @prereq compiler:testCompile - * @prereq resources:resources - * @prereq resources:testResources - * * @parameter * name="mavenRepoLocal" * type="String" @@ -181,7 +176,7 @@ public class SurefirePlugin if ( !success ) { - response.setExecutionFailure( true, new SurefireFailureResponse( null ) ); + response.setExecutionFailure( new SurefireFailureResponse( null ) ); } }