o Added svn:eol-style=native
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@639420 13f79535-47bb-0310-9956-ffa450edef68master
parent
51449eae73
commit
ed07d4c735
|
|
@ -1,38 +1,38 @@
|
||||||
<project>
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.apache.maven.its</groupId>
|
<groupId>org.apache.maven.its</groupId>
|
||||||
<artifactId>maven-integration-test-sample</artifactId>
|
<artifactId>maven-integration-test-sample</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<name>Maven Integration Tests</name>
|
<name>Maven Integration Tests</name>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.shared</groupId>
|
<groupId>org.apache.maven.shared</groupId>
|
||||||
<artifactId>maven-verifier</artifactId>
|
<artifactId>maven-verifier</artifactId>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.its</groupId>
|
<groupId>org.apache.maven.its</groupId>
|
||||||
<artifactId>maven-integration-test-helper</artifactId>
|
<artifactId>maven-integration-test-helper</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<!-- TODO: remove when snapshots are released -->
|
<!-- TODO: remove when snapshots are released -->
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>apache.snapshots</id>
|
<id>apache.snapshots</id>
|
||||||
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
|
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
<snapshots>
|
<snapshots>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,33 @@
|
||||||
|
|
||||||
|
|
||||||
import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase;
|
import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase;
|
||||||
import org.apache.maven.it.Verifier;
|
import org.apache.maven.it.Verifier;
|
||||||
import org.apache.maven.it.util.ResourceExtractor;
|
import org.apache.maven.it.util.ResourceExtractor;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests that the PluginDescriptor.getArtifacts() call returns all of the dependencies of the plugin,
|
* Tests that the PluginDescriptor.getArtifacts() call returns all of the dependencies of the plugin,
|
||||||
* not just those that made it past the filter excluding Maven's core artifacts.
|
* not just those that made it past the filter excluding Maven's core artifacts.
|
||||||
*/
|
*/
|
||||||
public class PluginReportCrashTest
|
public class PluginReportCrashTest
|
||||||
extends AbstractMavenIntegrationTestCase
|
extends AbstractMavenIntegrationTestCase
|
||||||
{
|
{
|
||||||
public void testPluginReport()
|
public void testPluginReport()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/PluginReportCrash" );
|
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/PluginReportCrash" );
|
||||||
|
|
||||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
|
||||||
verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.3:report" );
|
verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.3:report" );
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
verifier = new Verifier( testDir.getAbsolutePath() );
|
verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
|
||||||
verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.4:report" );
|
verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.4:report" );
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue