diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0085Test.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0085Test.java
index ed0c034a4d..e1a200195c 100644
--- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0085Test.java
+++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0085Test.java
@@ -23,6 +23,7 @@ import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
+import java.util.Collection;
public class MavenIT0085Test
extends AbstractMavenIntegrationTestCase
@@ -38,14 +39,18 @@ public class MavenIT0085Test
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0085" );
+
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
- verifier.executeGoal( "package" );
- verifier.assertFileNotPresent( "war/target/war-1.0/WEB-INF/lib/pom.xml" );
- verifier.assertFileNotPresent( "war/target/war-1.0/WEB-INF/lib/it0085-dep-1.0.jar" );
- verifier.assertFilePresent( "war/target/war-1.0/WEB-INF/lib/junit-3.8.1.jar" );
+ verifier.setAutoclean( false );
+ verifier.deleteDirectory( "target" );
+ verifier.deleteArtifacts( "org.apache.maven.its.it0085" );
+ verifier.getSystemProperties().setProperty( "test.home", testDir.getAbsolutePath() );
+ verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
+ Collection lines = verifier.loadLines( "target/test.txt", "UTF-8" );
+ assertTrue( lines.toString(), lines.contains( "system.jar" ) );
}
-}
+}
diff --git a/its/core-it-suite/src/test/resources/it0085/dep/pom.xml b/its/core-it-suite/src/test/resources/it0085/dep/pom.xml
deleted file mode 100644
index 028388a9bd..0000000000
--- a/its/core-it-suite/src/test/resources/it0085/dep/pom.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
- 4.0.0
-
- org.apache.maven.its.it0085
- maven-it-it0085
- 1.0
-
- dep
-
-
- org.apache.maven.its.it0085
- pom-dep
-
-
-
diff --git a/its/core-it-suite/src/test/resources/it0085/pom.xml b/its/core-it-suite/src/test/resources/it0085/pom.xml
index 9de05173d6..453d17e4c7 100644
--- a/its/core-it-suite/src/test/resources/it0085/pom.xml
+++ b/its/core-it-suite/src/test/resources/it0085/pom.xml
@@ -1,29 +1,61 @@
4.0.0
- Maven Integration Test :: it0085
+
org.apache.maven.its.it0085
- maven-it-it0085
- Verify that system-scoped dependencies get resolved with system scope
- when they are resolved transitively via another (non-system)
- dependency. Inherited scope should not apply in the case of
- system-scoped dependencies, no matter where they are.
+ test
1.0
pom
-
- dep
- war
-
+ Maven Integration Test :: it0085
+
+ Verify that system-scoped dependencies get resolved with system scope
+ when they are resolved transitively via another (non-system)
+ dependency. Inherited scope should not apply in the case of
+ system-scoped dependencies, no matter where they are.
+
-
-
-
- org.apache.maven.its.it0085
- pom-dep
- 1.4.2
- system
- ${basedir}/pom.xml
-
-
-
+
+
+ maven-core-it
+ file:///${basedir}/repo
+
+ ignore
+
+
+ ignore
+
+
+
+
+
+
+ org.apache.maven.its.it0085
+ dep
+ 0.1
+ provided
+
+
+
+
+
+
+ org.apache.maven.its.plugins
+ maven-it-plugin-dependency-resolution
+ 2.1-SNAPSHOT
+
+ target/test.txt
+ 1
+
+
+
+ test
+ validate
+
+ test
+
+
+
+
+
+
diff --git a/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/0.1/dep-0.1.jar b/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/0.1/dep-0.1.jar
new file mode 100644
index 0000000000..3da1e6ce40
Binary files /dev/null and b/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/0.1/dep-0.1.jar differ
diff --git a/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/0.1/dep-0.1.pom b/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/0.1/dep-0.1.pom
new file mode 100644
index 0000000000..0a0b9789b6
--- /dev/null
+++ b/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/0.1/dep-0.1.pom
@@ -0,0 +1,46 @@
+
+
+
+
+
+ 4.0.0
+
+ org.apache.maven.its.it0085
+ dep
+ 0.1
+ jar
+
+
+
+ maven-core-it
+ file:///${basedir}/repo
+
+
+
+
+
+ org.apache.maven.its.it0085
+ system
+ 0.2
+ system
+ ${test.home}/system.jar
+
+
+
diff --git a/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/maven-metadata.xml b/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/maven-metadata.xml
new file mode 100644
index 0000000000..a8e9e4ad20
--- /dev/null
+++ b/its/core-it-suite/src/test/resources/it0085/repo/org/apache/maven/its/it0085/dep/maven-metadata.xml
@@ -0,0 +1,11 @@
+
+ org.apache.maven.its.it0085
+ dep
+ 0.1
+
+
+ 0.1
+
+ 20090106211325
+
+
\ No newline at end of file
diff --git a/its/core-it-suite/src/test/resources/it0085/system.jar b/its/core-it-suite/src/test/resources/it0085/system.jar
new file mode 100644
index 0000000000..66e582d1b8
Binary files /dev/null and b/its/core-it-suite/src/test/resources/it0085/system.jar differ
diff --git a/its/core-it-suite/src/test/resources/it0085/war/pom.xml b/its/core-it-suite/src/test/resources/it0085/war/pom.xml
deleted file mode 100644
index 0d09a021d6..0000000000
--- a/its/core-it-suite/src/test/resources/it0085/war/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
- 4.0.0
-
- org.apache.maven.its.it0085
- maven-it-it0085
- 1.0
-
- war
- war
-
-
-
- junit
- junit
- 3.8.1
-
-
- org.apache.maven.its.it0085
- dep
- 1.0
- provided
-
-
-
diff --git a/its/core-it-suite/src/test/resources/it0085/war/src/main/webapp/WEB-INF/web.xml b/its/core-it-suite/src/test/resources/it0085/war/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 692c8c3b9a..0000000000
--- a/its/core-it-suite/src/test/resources/it0085/war/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-