From c453d4e95aa33ee246dd53daccae0c8ed95892fa Mon Sep 17 00:00:00 2001 From: Dennis Lundberg Date: Tue, 7 Aug 2012 21:27:52 +0000 Subject: [PATCH] Use maven-failsafe-plugin to run the tests, as this plugin is bound to the "integration-test" phase which comes after the "package" phase. This is what commons-logging needs for most of its tests. The normal "test" phase is handled by maven-surefire-plugin. We "disable" that by only running a single test class, one that can be run at the "test" phase. This a hack. To do it the Maven way would mean renaming all integration test source files. But, because we still have an Ant build to maintain I prefer to make as few changes as possible. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1370536 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 7775cf8..2720463 100644 --- a/pom.xml +++ b/pom.xml @@ -156,7 +156,7 @@ under the License. - The custom test framework requires the unit test code to be - in a jarfile so it can control its place in the classpath. --> - + org.apache.maven.plugins maven-jar-plugin @@ -265,7 +265,7 @@ under the License. - + org.apache.maven.plugins maven-surefire-plugin **/AvalonLoggerTestCase.java - **/WeakHashTableTestCase.java + + + + org.apache.maven.plugins + maven-failsafe-plugin integration-test - integration-test - test + integration-test + verify @@ -393,7 +406,7 @@ under the License. - + release