Repository: maven-integration-testing Updated Branches: refs/heads/master d0cab3ba3 -> 2cacb130f
[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/2cacb130 Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/2cacb130 Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/2cacb130 Branch: refs/heads/master Commit: 2cacb130f887c0abd9e807de82687bd5ce489066 Parents: d0cab3b Author: Christian Schulte <schu...@apache.org> Authored: Sat Feb 20 14:42:20 2016 +0100 Committer: Christian Schulte <schu...@apache.org> Committed: Sat Feb 20 15:25:20 2016 +0100 ---------------------------------------------------------------------- .../apache/maven/it/IntegrationTestSuite.java | 1 + ...venITmng5971HierarchicalImportScopeTest.java | 88 +++++++++++++++++++ .../src/test/resources/mng-5971/1/2/3/pom.xml | 53 +++++++++++ .../src/test/resources/mng-5971/1/2/pom.xml | 56 ++++++++++++ .../src/test/resources/mng-5971/1/pom.xml | 56 ++++++++++++ .../src/test/resources/mng-5971/pom.xml | 81 +++++++++++++++++ .../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 +++++++++ 19 files changed, 642 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2cacb130/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 e8d61b8..67680a9 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( MavenITmng5958LifecyclePhaseBinaryCompat.class ); suite.addTestSuite( MavenITmng4463DependencyManagementImportVersionRanges.class ); suite.addTestSuite( MavenITmng5227DependencyOptionalFlagManagementTest.class ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2cacb130/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..eea8ceb --- /dev/null +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5971HierarchicalImportScopeTest.java @@ -0,0 +1,88 @@ +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.4,)" ); + } + + public void testInheritanceProcessing() + throws Exception + { + final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5971" ); + + 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" ) ); + } + + 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/2cacb130/core-it-suite/src/test/resources/mng-5971/1/2/3/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5971/1/2/3/pom.xml b/core-it-suite/src/test/resources/mng-5971/1/2/3/pom.xml new file mode 100644 index 0000000..ecdbfea --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5971/1/2/3/pom.xml @@ -0,0 +1,53 @@ +<?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>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>org.apache.maven.its.mng5971</groupId> + <artifactId>dependency</artifactId> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2cacb130/core-it-suite/src/test/resources/mng-5971/1/2/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5971/1/2/pom.xml b/core-it-suite/src/test/resources/mng-5971/1/2/pom.xml new file mode 100644 index 0000000..dea4960 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5971/1/2/pom.xml @@ -0,0 +1,56 @@ +<?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>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>org.apache.maven.its.mng5971</groupId> + <artifactId>dependency</artifactId> + </dependency> + </dependencies> + + <modules> + <module>3</module> + </modules> +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2cacb130/core-it-suite/src/test/resources/mng-5971/1/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5971/1/pom.xml b/core-it-suite/src/test/resources/mng-5971/1/pom.xml new file mode 100644 index 0000000..7f43864 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5971/1/pom.xml @@ -0,0 +1,56 @@ +<?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>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>org.apache.maven.its.mng5971</groupId> + <artifactId>dependency</artifactId> + </dependency> + </dependencies> + + <modules> + <module>2</module> + </modules> +</project> http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/2cacb130/core-it-suite/src/test/resources/mng-5971/pom.xml ---------------------------------------------------------------------- diff --git a/core-it-suite/src/test/resources/mng-5971/pom.xml b/core-it-suite/src/test/resources/mng-5971/pom.xml new file mode 100644 index 0000000..08bd0c8 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-5971/pom.xml @@ -0,0 +1,81 @@ +<?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>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> + + <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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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/2cacb130/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..c985d1a --- /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>