mirror of https://github.com/apache/maven.git
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:
parent
ef942be7aa
commit
223b12ba90
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
it0085
|
||||
it0084
|
||||
it0083
|
||||
it0082
|
||||
|
|
|
@ -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>
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
package
|
|
@ -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>
|
|
@ -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>
|
|
@ -0,0 +1,2 @@
|
|||
<web-xml>
|
||||
</web-xml>
|
Loading…
Reference in New Issue