You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sc...@apache.org on 2017/01/21 23:23:39 UTC
[1/2] maven-integration-testing git commit: [MNG-5971] Imported
dependencies should be available to inheritance processing
Repository: maven-integration-testing
Updated Branches:
refs/heads/MNG-5971+MNG-6079 [created] a21feadb4
[MNG-5971] Imported dependencies should be available to inheritance processing
Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/2fff86e4
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/2fff86e4
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/2fff86e4
Branch: refs/heads/MNG-5971+MNG-6079
Commit: 2fff86e49f8886fc2feaa73d3c2ab38c3bf0a142
Parents: 6c86dc6
Author: Christian Schulte <sc...@apache.org>
Authored: Sat Feb 20 14:42:20 2016 +0100
Committer: Christian Schulte <sc...@apache.org>
Committed: Sun Jan 22 00:20:53 2017 +0100
----------------------------------------------------------------------
.../apache/maven/it/IntegrationTestSuite.java | 1 +
...venITmng5971HierarchicalImportScopeTest.java | 204 +++++++++++++++++++
.../test/resources/mng-5971/conflict/pom.xml | 100 +++++++++
.../mng-5971/include-properties/1/2/3/4/pom.xml | 47 +++++
.../mng-5971/include-properties/1/2/3/pom.xml | 51 +++++
.../mng-5971/include-properties/1/2/pom.xml | 50 +++++
.../mng-5971/include-properties/1/pom.xml | 50 +++++
.../mng-5971/include-properties/pom.xml | 80 ++++++++
.../mng-5971/inheritance/1/2/3/pom.xml | 46 +++++
.../resources/mng-5971/inheritance/1/2/pom.xml | 49 +++++
.../resources/mng-5971/inheritance/1/pom.xml | 49 +++++
.../test/resources/mng-5971/inheritance/pom.xml | 79 +++++++
.../test/resources/mng-5971/override/pom.xml | 87 ++++++++
.../mng-5971/properties/1/2/3/4/pom.xml | 47 +++++
.../resources/mng-5971/properties/1/2/3/pom.xml | 51 +++++
.../resources/mng-5971/properties/1/2/pom.xml | 50 +++++
.../resources/mng-5971/properties/1/pom.xml | 50 +++++
.../test/resources/mng-5971/properties/pom.xml | 80 ++++++++
.../its/mng5971/dependency/0/dependency-0.jar | Bin 0 -> 341 bytes
.../its/mng5971/dependency/0/dependency-0.pom | 27 +++
.../its/mng5971/dependency/1/dependency-1.jar | Bin 0 -> 341 bytes
.../its/mng5971/dependency/1/dependency-1.pom | 27 +++
.../its/mng5971/dependency/2/dependency-2.jar | Bin 0 -> 341 bytes
.../its/mng5971/dependency/2/dependency-2.pom | 27 +++
.../its/mng5971/dependency/3/dependency-3.jar | Bin 0 -> 341 bytes
.../its/mng5971/dependency/3/dependency-3.pom | 27 +++
.../maven/its/mng5971/import/0/import-0.pom | 39 ++++
.../maven/its/mng5971/import/1/import-1.pom | 39 ++++
.../maven/its/mng5971/import/2/import-2.pom | 39 ++++
.../maven/its/mng5971/import/3/import-3.pom | 39 ++++
.../resources/mng-5971/settings-template.xml | 43 ++++
31 files changed, 1478 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
index 5536620..87a85a6 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
@@ -106,6 +106,7 @@ public class IntegrationTestSuite
// -------------------------------------------------------------------------------------------------------------
// suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
+ suite.addTestSuite( MavenITmng5971HierarchicalImportScopeTest.class );
suite.addTestSuite( MavenITmng5898BuildMultimoduleWithEARFailsToResolveWARTest.class );
suite.addTestSuite( MavenITmng5840ParentVersionRanges.class );
suite.addTestSuite( MavenITmng5840RelativePathReactorMatching.class );
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5971HierarchicalImportScopeTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5971HierarchicalImportScopeTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5971HierarchicalImportScopeTest.java
new file mode 100644
index 0000000..5656858
--- /dev/null
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5971HierarchicalImportScopeTest.java
@@ -0,0 +1,204 @@
+package org.apache.maven.it;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import org.apache.maven.it.util.ResourceExtractor;
+import static junit.framework.Assert.assertTrue;
+
+/**
+ * [MNG-5971] Imported dependencies should be available to inheritance processing.
+ *
+ * @author Christian Schulte
+ */
+public class MavenITmng5971HierarchicalImportScopeTest
+ extends AbstractMavenIntegrationTestCase
+{
+
+ public MavenITmng5971HierarchicalImportScopeTest()
+ {
+ super( "[3.5,)" );
+ }
+
+ public void testInheritanceProcessing()
+ throws Exception
+ {
+ final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5971/inheritance" );
+
+ final Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+ verifier.setAutoclean( false );
+ verifier.filterFile( "../settings-template.xml", "settings.xml", "UTF-8",
+ (Map) verifier.newDefaultFilterProperties() );
+
+ verifier.addCliOption( "-s" );
+ verifier.addCliOption( "settings.xml" );
+ verifier.executeGoals( Arrays.asList( new String[]
+ {
+ "clean", "verify"
+ } ) );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ final List<String> dependencies0 = verifier.loadLines( "target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies0, "org.apache.maven.its.mng5971:dependency:jar:0" ) );
+
+ final List<String> dependencies1 = verifier.loadLines( "1/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies1, "org.apache.maven.its.mng5971:dependency:jar:1" ) );
+
+ final List<String> dependencies2 = verifier.loadLines( "1/2/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies2, "org.apache.maven.its.mng5971:dependency:jar:2" ) );
+
+ final List<String> dependencies3 = verifier.loadLines( "1/2/3/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies3, "org.apache.maven.its.mng5971:dependency:jar:3" ) );
+ }
+
+ public void testOverrideProcessing()
+ throws Exception
+ {
+ final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5971/override" );
+
+ final Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+ verifier.setAutoclean( false );
+ verifier.filterFile( "../settings-template.xml", "settings.xml", "UTF-8",
+ (Map) verifier.newDefaultFilterProperties() );
+
+ verifier.addCliOption( "-s" );
+ verifier.addCliOption( "settings.xml" );
+ verifier.executeGoals( Arrays.asList( new String[]
+ {
+ "clean", "verify"
+ } ) );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ final List<String> dependencies = verifier.loadLines( "target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies, "org.apache.maven.its.mng5971:dependency:jar:3" ) );
+ }
+
+ public void testConflictResolution()
+ throws Exception
+ {
+ final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5971/conflict" );
+
+ final Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+ verifier.setAutoclean( false );
+ verifier.filterFile( "../settings-template.xml", "settings.xml", "UTF-8",
+ (Map) verifier.newDefaultFilterProperties() );
+
+ verifier.addCliOption( "-s" );
+ verifier.addCliOption( "settings.xml" );
+ verifier.executeGoals( Arrays.asList( new String[]
+ {
+ "clean", "verify"
+ } ) );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ final List<String> dependencies = verifier.loadLines( "target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies, "org.apache.maven.its.mng5971:dependency:jar:3" ) );
+ }
+
+ public void testInheritanceProcessingWithProjectBasedProperties()
+ throws Exception
+ {
+ final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5971/properties" );
+
+ final Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+ verifier.setAutoclean( false );
+ verifier.filterFile( "../settings-template.xml", "settings.xml", "UTF-8",
+ (Map) verifier.newDefaultFilterProperties() );
+
+ verifier.addCliOption( "-s" );
+ verifier.addCliOption( "settings.xml" );
+ verifier.executeGoals( Arrays.asList( new String[]
+ {
+ "clean", "verify"
+ } ) );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ final List<String> dependencies0 = verifier.loadLines( "target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies0, "org.apache.maven.its.mng5971:dependency:jar:0" ) );
+
+ final List<String> dependencies1 = verifier.loadLines( "1/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies1, "org.apache.maven.its.mng5971:dependency:jar:1" ) );
+
+ final List<String> dependencies2 = verifier.loadLines( "1/2/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies2, "org.apache.maven.its.mng5971:dependency:jar:2" ) );
+
+ final List<String> dependencies3 = verifier.loadLines( "1/2/3/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies3, "org.apache.maven.its.mng5971:dependency:jar:3" ) );
+
+ final List<String> dependencies4 = verifier.loadLines( "1/2/3/4/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies4, "org.apache.maven.its.mng5971:dependency:jar:3" ) );
+ }
+
+ public void testIncludeInheritanceProcessingWithProjectBasedProperties()
+ throws Exception
+ {
+ final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5971/include-properties" );
+
+ final Verifier verifier = newVerifier( testDir.getAbsolutePath() );
+ verifier.setAutoclean( false );
+ verifier.filterFile( "../settings-template.xml", "settings.xml", "UTF-8",
+ (Map) verifier.newDefaultFilterProperties() );
+
+ verifier.addCliOption( "-s" );
+ verifier.addCliOption( "settings.xml" );
+ verifier.executeGoals( Arrays.asList( new String[]
+ {
+ "clean", "verify"
+ } ) );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ final List<String> dependencies0 = verifier.loadLines( "target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies0, "org.apache.maven.its.mng5971:dependency:jar:0" ) );
+
+ final List<String> dependencies1 = verifier.loadLines( "1/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies1, "org.apache.maven.its.mng5971:dependency:jar:1" ) );
+
+ final List<String> dependencies2 = verifier.loadLines( "1/2/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies2, "org.apache.maven.its.mng5971:dependency:jar:2" ) );
+
+ final List<String> dependencies3 = verifier.loadLines( "1/2/3/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies3, "org.apache.maven.its.mng5971:dependency:jar:3" ) );
+
+ final List<String> dependencies4 = verifier.loadLines( "1/2/3/4/target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies4, "org.apache.maven.its.mng5971:dependency:jar:3" ) );
+ }
+
+ private static boolean contains( final List<String> lines, final String pattern )
+ {
+ for ( int i = 0, l0 = lines.size(); i < l0; i++ )
+ {
+ if ( lines.get( i ).contains( pattern ) )
+ {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/conflict/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/conflict/pom.xml b/core-it-suite/src/test/resources/mng-5971/conflict/pom.xml
new file mode 100644
index 0000000..9df2c7d
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/conflict/pom.xml
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>20160220</version>
+ <packaging>pom</packaging>
+
+ <name>Maven Integration Test :: MNG-5971</name>
+
+ <description>
+ Tests that imported dependencies will be overridden based on a first declaration wins strategy.
+ </description>
+
+ <dependencyManagement>
+ <dependencies>
+ <!--
+ First declaration wins.
+ -->
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>3</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>2</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>1</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>0</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <configuration>
+ <compileArtifacts>target/compile.txt</compileArtifacts>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/4/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/4/pom.xml b/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/4/pom.xml
new file mode 100644
index 0000000..50b7175
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/4/pom.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>3</artifactId>
+ <version>3</version>
+ </parent>
+
+ <artifactId>4</artifactId>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <!-- Test for version inheritance. -->
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>include</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/pom.xml b/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/pom.xml
new file mode 100644
index 0000000..42bccc8
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/3/pom.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>2</artifactId>
+ <version>2</version>
+ </parent>
+
+ <artifactId>3</artifactId>
+ <version>3</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>include</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>4</module>
+ </modules>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/pom.xml b/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/pom.xml
new file mode 100644
index 0000000..5b35e3a
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/include-properties/1/2/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>1</artifactId>
+ <version>1</version>
+ </parent>
+
+ <artifactId>2</artifactId>
+ <version>2</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>include</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>3</module>
+ </modules>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/include-properties/1/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/include-properties/1/pom.xml b/core-it-suite/src/test/resources/mng-5971/include-properties/1/pom.xml
new file mode 100644
index 0000000..1f8f1a5
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/include-properties/1/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>0</version>
+ </parent>
+
+ <artifactId>1</artifactId>
+ <version>1</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>include</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>2</module>
+ </modules>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/include-properties/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/include-properties/pom.xml b/core-it-suite/src/test/resources/mng-5971/include-properties/pom.xml
new file mode 100644
index 0000000..647cf5c
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/include-properties/pom.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>0</version>
+ <packaging>pom</packaging>
+
+ <name>Maven Integration Test :: MNG-5971</name>
+
+ <description>
+ Multi module project using dependency management include at each child level testing import are performed on each
+ level and overriden correctly when using inherited ${project.groupId} and ${project.version} expressions in
+ dependency management import declarations.
+ </description>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>dependency</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ </dependency>
+ </dependencies>
+
+ <modules>
+ <module>1</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <configuration>
+ <compileArtifacts>target/compile.txt</compileArtifacts>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/3/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/3/pom.xml b/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/3/pom.xml
new file mode 100644
index 0000000..d0bcbd9
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/3/pom.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>2</artifactId>
+ <version>20160220</version>
+ </parent>
+
+ <artifactId>3</artifactId>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>3</version>
+ <type>pom</type>
+ <scope>include</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/pom.xml b/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/pom.xml
new file mode 100644
index 0000000..4797c68
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/inheritance/1/2/pom.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>1</artifactId>
+ <version>20160220</version>
+ </parent>
+
+ <artifactId>2</artifactId>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>2</version>
+ <type>pom</type>
+ <scope>include</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>3</module>
+ </modules>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/inheritance/1/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/inheritance/1/pom.xml b/core-it-suite/src/test/resources/mng-5971/inheritance/1/pom.xml
new file mode 100644
index 0000000..c7e3f9c
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/inheritance/1/pom.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>20160220</version>
+ </parent>
+
+ <artifactId>1</artifactId>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>1</version>
+ <type>pom</type>
+ <scope>include</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>2</module>
+ </modules>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/inheritance/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/inheritance/pom.xml b/core-it-suite/src/test/resources/mng-5971/inheritance/pom.xml
new file mode 100644
index 0000000..2614416
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/inheritance/pom.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>20160220</version>
+ <packaging>pom</packaging>
+
+ <name>Maven Integration Test :: MNG-5971</name>
+
+ <description>
+ Multi module project using dependency management import at each child level testing import are performed on each
+ level and overriden correctly.
+ </description>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>0</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ </dependency>
+ </dependencies>
+
+ <modules>
+ <module>1</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <configuration>
+ <compileArtifacts>target/compile.txt</compileArtifacts>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/override/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/override/pom.xml b/core-it-suite/src/test/resources/mng-5971/override/pom.xml
new file mode 100644
index 0000000..fc5fb4c
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/override/pom.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>20160220</version>
+ <packaging>pom</packaging>
+
+ <name>Maven Integration Test :: MNG-5971</name>
+
+ <description>
+ Tests that imported dependencies will be overridden based on a first declaration wins strategy.
+ </description>
+
+ <dependencyManagement>
+ <dependencies>
+ <!--
+ Imports the same dependency as below with a different version.
+ -->
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>0</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <!--
+ Direct declaration overrides what gets imported.
+ -->
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>3</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <configuration>
+ <compileArtifacts>target/compile.txt</compileArtifacts>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/4/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/4/pom.xml b/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/4/pom.xml
new file mode 100644
index 0000000..c60f6d0
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/4/pom.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>3</artifactId>
+ <version>3</version>
+ </parent>
+
+ <artifactId>4</artifactId>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <!-- Test for version inheritance. -->
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/pom.xml b/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/pom.xml
new file mode 100644
index 0000000..501f191
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/properties/1/2/3/pom.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>2</artifactId>
+ <version>2</version>
+ </parent>
+
+ <artifactId>3</artifactId>
+ <version>3</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>4</module>
+ </modules>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/properties/1/2/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/properties/1/2/pom.xml b/core-it-suite/src/test/resources/mng-5971/properties/1/2/pom.xml
new file mode 100644
index 0000000..5e0b727
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/properties/1/2/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>1</artifactId>
+ <version>1</version>
+ </parent>
+
+ <artifactId>2</artifactId>
+ <version>2</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>3</module>
+ </modules>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/properties/1/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/properties/1/pom.xml b/core-it-suite/src/test/resources/mng-5971/properties/1/pom.xml
new file mode 100644
index 0000000..e374e88
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/properties/1/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>0</version>
+ </parent>
+
+ <artifactId>1</artifactId>
+ <version>1</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>import</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>2</module>
+ </modules>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/properties/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/properties/pom.xml b/core-it-suite/src/test/resources/mng-5971/properties/pom.xml
new file mode 100644
index 0000000..02f870e
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/properties/pom.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>0</artifactId>
+ <version>0</version>
+ <packaging>pom</packaging>
+
+ <name>Maven Integration Test :: MNG-5971</name>
+
+ <description>
+ Multi module project using dependency management import at each child level testing import are performed on each
+ level and overriden correctly when using inherited ${project.groupId} and ${project.version} expressions in
+ dependency management import declarations.
+ </description>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>dependency</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ </dependency>
+ </dependencies>
+
+ <modules>
+ <module>1</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <configuration>
+ <compileArtifacts>target/compile.txt</compileArtifacts>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.jar
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.jar b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.jar
new file mode 100644
index 0000000..2f64208
Binary files /dev/null and b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.jar differ
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.pom
new file mode 100644
index 0000000..b9829ba
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/0/dependency-0.pom
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>0</version>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.jar
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.jar b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.jar
new file mode 100644
index 0000000..2f64208
Binary files /dev/null and b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.jar differ
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.pom
new file mode 100644
index 0000000..52e7cc3
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/1/dependency-1.pom
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>1</version>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.jar
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.jar b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.jar
new file mode 100644
index 0000000..2f64208
Binary files /dev/null and b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.jar differ
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.pom
new file mode 100644
index 0000000..ce89297
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/2/dependency-2.pom
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>2</version>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.jar
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.jar b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.jar
new file mode 100644
index 0000000..2f64208
Binary files /dev/null and b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.jar differ
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.pom
new file mode 100644
index 0000000..1ef1418
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/dependency/3/dependency-3.pom
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>3</version>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/0/import-0.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/0/import-0.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/0/import-0.pom
new file mode 100644
index 0000000..d0ff23f
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/0/import-0.pom
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>0</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>0</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/1/import-1.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/1/import-1.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/1/import-1.pom
new file mode 100644
index 0000000..7b6ddb5
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/1/import-1.pom
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>1</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>1</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/2/import-2.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/2/import-2.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/2/import-2.pom
new file mode 100644
index 0000000..4938b9f
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/2/import-2.pom
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>2</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>2</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/3/import-3.pom
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/3/import-3.pom b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/3/import-3.pom
new file mode 100644
index 0000000..fa68b02
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/repo/org/apache/maven/its/mng5971/import/3/import-3.pom
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>import</artifactId>
+ <version>3</version>
+ <packaging>pom</packaging>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng5971</groupId>
+ <artifactId>dependency</artifactId>
+ <version>3</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2fff86e4/core-it-suite/src/test/resources/mng-5971/settings-template.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-5971/settings-template.xml b/core-it-suite/src/test/resources/mng-5971/settings-template.xml
new file mode 100644
index 0000000..f22a7f3
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-5971/settings-template.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<settings>
+ <profiles>
+ <profile>
+ <id>maven-core-it-repo</id>
+ <repositories>
+ <repository>
+ <id>maven-core-it</id>
+ <url>@baseurl@/../repo</url>
+ <releases>
+ <checksumPolicy>ignore</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ </profile>
+ </profiles>
+ <activeProfiles>
+ <activeProfile>maven-core-it-repo</activeProfile>
+ </activeProfiles>
+</settings>
[2/2] maven-integration-testing git commit: [MNG-6079] 3.4
regression: cannot override version of a dependencyManagement in a submodule
any more
Posted by sc...@apache.org.
[MNG-6079] 3.4 regression: cannot override version of a dependencyManagement in a submodule any more
Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/a21feadb
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/a21feadb
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/a21feadb
Branch: refs/heads/MNG-5971+MNG-6079
Commit: a21feadb41a4b7bf7686a6829627fa400fd2029a
Parents: 2fff86e
Author: Christian Schulte <sc...@apache.org>
Authored: Sat Aug 13 02:04:02 2016 +0200
Committer: Christian Schulte <sc...@apache.org>
Committed: Sun Jan 22 00:21:00 2017 +0100
----------------------------------------------------------------------
.../apache/maven/it/IntegrationTestSuite.java | 1 +
...ndencyManagementImportInterpolationTest.java | 81 ++++++++++++++++++++
.../src/test/resources/mng-6079/parent-pom.xml | 49 ++++++++++++
.../src/test/resources/mng-6079/pom.xml | 69 +++++++++++++++++
.../resources/mng-6079/settings-template.xml | 43 +++++++++++
5 files changed, 243 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/a21feadb/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
index 87a85a6..be2bf14 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
@@ -106,6 +106,7 @@ public class IntegrationTestSuite
// -------------------------------------------------------------------------------------------------------------
// suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
+ suite.addTestSuite( MavenITmng6079DependencyManagementImportInterpolationTest.class );
suite.addTestSuite( MavenITmng5971HierarchicalImportScopeTest.class );
suite.addTestSuite( MavenITmng5898BuildMultimoduleWithEARFailsToResolveWARTest.class );
suite.addTestSuite( MavenITmng5840ParentVersionRanges.class );
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/a21feadb/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6079DependencyManagementImportInterpolationTest.java
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6079DependencyManagementImportInterpolationTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6079DependencyManagementImportInterpolationTest.java
new file mode 100644
index 0000000..21ca3e4
--- /dev/null
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6079DependencyManagementImportInterpolationTest.java
@@ -0,0 +1,81 @@
+package org.apache.maven.it;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.maven.it.util.ResourceExtractor;
+
+import static junit.framework.Assert.assertTrue;
+
+/**
+ * [MNG-6079] 3.4 regression: cannot override version of a dependencyManagement in a submodule any more
+ *
+ * @author Christian Schulte
+ */
+public class MavenITmng6079DependencyManagementImportInterpolationTest
+ extends AbstractMavenIntegrationTestCase
+{
+
+ public MavenITmng6079DependencyManagementImportInterpolationTest()
+ {
+ super( "[2.0.9,)" );
+ }
+
+ public void testInheritanceProcessing()
+ throws Exception
+ {
+ final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-6079" );
+
+ final Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
+ verifier.setAutoclean( false );
+ verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8",
+ (Map) verifier.newDefaultFilterProperties() );
+
+ verifier.addCliOption( "-s" );
+ verifier.addCliOption( "settings.xml" );
+ verifier.executeGoals( Arrays.asList( new String[]
+ {
+ "clean", "verify"
+ } ) );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ final List<String> dependencies0 = verifier.loadLines( "target/compile.txt", "UTF-8" );
+ assertTrue( contains( dependencies0, "org.apache.maven.surefire:surefire-api:jar:2.12" ) );
+ }
+
+ private static boolean contains( final List<String> lines, final String pattern )
+ {
+ for ( int i = 0, l0 = lines.size(); i < l0; i++ )
+ {
+ if ( lines.get( i ).contains( pattern ) )
+ {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/a21feadb/core-it-suite/src/test/resources/mng-6079/parent-pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6079/parent-pom.xml b/core-it-suite/src/test/resources/mng-6079/parent-pom.xml
new file mode 100644
index 0000000..86cdcec
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6079/parent-pom.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.its.mng6079</groupId>
+ <artifactId>parent</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+
+ <properties>
+ <surefire.version>2.10</surefire.version>
+ </properties>
+
+ <!-- Import dependencies from surefire, especially surefire-api -->
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire</artifactId>
+ <version>${surefire.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/a21feadb/core-it-suite/src/test/resources/mng-6079/pom.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6079/pom.xml b/core-it-suite/src/test/resources/mng-6079/pom.xml
new file mode 100644
index 0000000..bc2e24d
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6079/pom.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <groupId>org.apache.maven.its.mng6079</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <relativePath>parent-pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <packaging>jar</packaging>
+ <artifactId>submodule</artifactId>
+
+ <properties>
+ <surefire.version>2.12</surefire.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-api</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its.plugins</groupId>
+ <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+ <version>2.1-SNAPSHOT</version>
+ <configuration>
+ <compileArtifacts>target/compile.txt</compileArtifacts>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/a21feadb/core-it-suite/src/test/resources/mng-6079/settings-template.xml
----------------------------------------------------------------------
diff --git a/core-it-suite/src/test/resources/mng-6079/settings-template.xml b/core-it-suite/src/test/resources/mng-6079/settings-template.xml
new file mode 100644
index 0000000..f22a7f3
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-6079/settings-template.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<settings>
+ <profiles>
+ <profile>
+ <id>maven-core-it-repo</id>
+ <repositories>
+ <repository>
+ <id>maven-core-it</id>
+ <url>@baseurl@/../repo</url>
+ <releases>
+ <checksumPolicy>ignore</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ </profile>
+ </profiles>
+ <activeProfiles>
+ <activeProfile>maven-core-it-repo</activeProfile>
+ </activeProfiles>
+</settings>