mirror of https://github.com/apache/maven.git
Adding IT to cover a regression on dependencyManagement injection from parent-poms of a dependency's pom.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@209538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e2d7c7622a
commit
2a403e4df3
|
@ -90,6 +90,9 @@ it0028: Test that unused configuration parameters from the POM don't cause the
|
|||
|
||||
it0029: Test for pluginManagement injection of plugin configuration.
|
||||
|
||||
it0030: Test for injection of dependencyManagement through parents of
|
||||
dependency poms.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
- generated sources
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
it0029
|
||||
#it0030
|
||||
#it0029
|
||||
it0028
|
||||
it0027
|
||||
it0026
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030-child-hierarchy</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<modules>
|
||||
<module>project1</module>
|
||||
<module>project2</module>
|
||||
</modules>
|
||||
</model>
|
|
@ -0,0 +1,13 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030-child-hierarchy</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030-child-project1</artifactId>
|
||||
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
</model>
|
|
@ -0,0 +1,20 @@
|
|||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030-child-hierarchy</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030-child-project2</artifactId>
|
||||
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030-child-project1</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</model>
|
|
@ -0,0 +1,18 @@
|
|||
package org.apache.maven.it0001;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String newName )
|
||||
{
|
||||
assert true;
|
||||
|
||||
this.name = newName;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
child-hierarchy/project2/target/classes/org/apache/maven/it0001/Person.class
|
|
@ -0,0 +1 @@
|
|||
install
|
|
@ -0,0 +1,28 @@
|
|||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<description>Test for dependencyManagement injection for parent-poms of transitively resolved poms.</description>
|
||||
|
||||
<modules>
|
||||
<module>child-hierarchy</module>
|
||||
</modules>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-core-it0030-child-project1</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,4 @@
|
|||
rm ${artifact:org.apache.maven.it:maven-core-it0030:1.0-SNAPSHOT:jar}
|
||||
rm ${artifact:org.apache.maven.it:maven-core-it0030-child-hierarchy:1.0-SNAPSHOT:jar}
|
||||
rm ${artifact:org.apache.maven.it:maven-core-it0030-child-project1:1.0-SNAPSHOT:jar}
|
||||
rm ${artifact:org.apache.maven.it:maven-core-it0030-child-project2:1.0-SNAPSHOT:jar}
|
Loading…
Reference in New Issue