Adding test case for preserving system scope on transitively resolved deps.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@330681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-11-04 01:39:23 +00:00
parent ef942be7aa
commit 223b12ba90
8 changed files with 76 additions and 0 deletions

View File

@ -229,6 +229,11 @@ it0083: Verify that overriding a compile time dependency as provided in a WAR en
it0084: Verify that the collector selecting a particular version gets the correct subtree
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.
-------------------------------------------------------------------------------
- generated sources

View File

@ -1,3 +1,4 @@
it0085
it0084
it0083
it0082

View File

@ -0,0 +1,16 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.it</groupId>
<artifactId>it0085-parent</artifactId>
<version>1.0</version>
</parent>
<artifactId>it0085-dep</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.maven.it</groupId>
<artifactId>pom-dep</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,3 @@
!war/target/it0085-war-1.0/WEB-INF/lib/pom.xml
!war/target/it0085-war-1.0/WEB-INF/lib/it0085-dep-1.0.jar
war/target/it0085-war-1.0/WEB-INF/lib/junit-3.8.1.jar

View File

@ -0,0 +1 @@
package

View File

@ -0,0 +1,24 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.it</groupId>
<artifactId>it0085-parent</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<modules>
<module>dep</module>
<module>war</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.it</groupId>
<artifactId>pom-dep</artifactId>
<version>1.4.2</version>
<scope>system</scope>
<systemPath>${basedir}/pom.xml</systemPath>
</dependency>
</dependencies>
</dependencyManagement>
</project>

View File

@ -0,0 +1,24 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.it</groupId>
<artifactId>it0085-parent</artifactId>
<version>1.0</version>
</parent>
<artifactId>it0085-war</artifactId>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.it</groupId>
<artifactId>it0085-dep</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,2 @@
<web-xml>
</web-xml>