From bb6ea50e0b107d72d9066c923b8ac1e2c8dde7a5 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 6 Jan 2009 20:05:39 +0000 Subject: [PATCH] o Decoupled it0052 from production plugins git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@732091 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/it/MavenIT0052Test.java | 11 +++++++---- .../src/test/resources/it0052/pom.xml | 18 +++++++++++++++++- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0052Test.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0052Test.java index 97de3c0d60..a78eff7343 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0052Test.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0052Test.java @@ -36,14 +36,17 @@ public class MavenIT0052Test throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0052" ); + Verifier verifier = new Verifier( testDir.getAbsolutePath() ); + verifier.setAutoclean( false ); + verifier.deleteDirectory( "target" ); verifier.executeGoal( "package" ); - verifier.assertFilePresent( "target/maven-it-it0052-1.0.jar" ); - verifier.assertFileNotPresent( "target/source-jar.txt" ); - verifier.assertFileNotPresent( "target/javadoc-jar.txt" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); + verifier.assertFilePresent( "target/jar-jar.txt" ); + verifier.assertFileNotPresent( "target/source-jar.txt" ); + verifier.assertFileNotPresent( "target/javadoc-jar.txt" ); } -} +} diff --git a/its/core-it-suite/src/test/resources/it0052/pom.xml b/its/core-it-suite/src/test/resources/it0052/pom.xml index ab87bfb47b..ac4da04b86 100644 --- a/its/core-it-suite/src/test/resources/it0052/pom.xml +++ b/its/core-it-suite/src/test/resources/it0052/pom.xml @@ -30,18 +30,34 @@ under the License. Maven Integration Test :: it0052 Test that source attachment doesn't take place when -DperformRelease=true is missing. - + + + maven-compiler-plugin + 0.1-stub-SNAPSHOT + + + maven-jar-plugin + 0.1-stub-SNAPSHOT + maven-javadoc-plugin 0.1-stub-SNAPSHOT + + maven-resources-plugin + 0.1-stub-SNAPSHOT + maven-source-plugin 0.1-stub-SNAPSHOT + + maven-surefire-plugin + 0.1-stub-SNAPSHOT +