mirror of https://github.com/apache/maven.git
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
This commit is contained in:
parent
d40f7cc6ef
commit
bb6ea50e0b
|
@ -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" );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -30,18 +30,34 @@ under the License.
|
|||
<name>Maven Integration Test :: it0052</name>
|
||||
<description>Test that source attachment doesn't take place when -DperformRelease=true is missing.</description>
|
||||
|
||||
<!-- NOTE: Use stub versions of the core plugins referenced by the release profile -->
|
||||
<!-- NOTE: Use stub versions of the core plugins referenced by the build -->
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>0.1-stub-SNAPSHOT</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>0.1-stub-SNAPSHOT</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>0.1-stub-SNAPSHOT</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>0.1-stub-SNAPSHOT</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>0.1-stub-SNAPSHOT</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>0.1-stub-SNAPSHOT</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
|
Loading…
Reference in New Issue