o Changed test to use ready-made artifacts (speed) and IT plugins (robustness)

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@721706 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-11-29 19:13:17 +00:00
parent 4d2c23b8f7
commit d37eecf758
37 changed files with 593 additions and 397 deletions

View File

@ -23,18 +23,19 @@ import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor; import org.apache.maven.it.util.ResourceExtractor;
import java.io.File; import java.io.File;
import java.util.List;
/** /**
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-3877">MNG-3877</a>.
*
* expected project.getArtifacts() results: * expected project.getArtifacts() results:
* *
* direct-dependency-groupId:direct-dependency-artifactId:jar:1:compile * org.apache.maven.its.mng3380:direct:jar:1:compile
* transitive-dependency-new-groupId:transitive-dependency-artifactId:jar:2:compile * org.apache.maven.its.mng3380.new:transitive:jar:2:compile
* other-groupId:other-artifactId-a:jar:1:compile * org.apache.maven.its.mng3380.other:a:jar:1:compile
* other-groupId:other-artifactId-b:jar:1:compile * org.apache.maven.its.mng3380.other:b:jar:1:compile
*
* org.apache.maven.project.MavenProject#.getArtifacts() is called with goal:
* org.apache.maven.its:mng3380.plugin:mng-3380-test
* *
* @version $Id$
*/ */
public class MavenITmng3380ManagedRelocatedTransdepsTest public class MavenITmng3380ManagedRelocatedTransdepsTest
extends AbstractMavenIntegrationTestCase extends AbstractMavenIntegrationTestCase
@ -45,241 +46,35 @@ public class MavenITmng3380ManagedRelocatedTransdepsTest
super("(2.0.9,)"); super("(2.0.9,)");
} }
/**
* Verify that dependency resolution considers dependency management also for relocated artifacts.
*/
public void testitMNG3380() public void testitMNG3380()
throws Exception throws Exception
{ {
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3380" );
// compute test directory Verifier verifier = new Verifier( testDir.getAbsolutePath() );
File testDir = ResourceExtractor.simpleExtractResources(getClass(), verifier.setAutoclean( false );
"/mng-3380"); verifier.deleteDirectory( "target" );
verifier.deleteArtifacts( "org.apache.maven.its.mng3380" );
Verifier verifier = new Verifier(testDir.getAbsolutePath()); verifier.executeGoal( "validate" );
deleteArtifacts( verifier );
installDependencies( testDir );
String path = testDir.getAbsolutePath() //
+ "/consumer";
verifier = new Verifier(path);
verifier.executeGoal("package");
// verify no errors so far
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();
List artifacts = verifier.loadLines( "target/artifacts.txt", "UTF-8" );
assertEquals( 4, artifacts.size() );
assertEquals( "org.apache.maven.its.mng3380:direct:jar:1", artifacts.get( 0 ) );
assertEquals( "org.apache.maven.its.mng3380.new:transitive:jar:2", artifacts.get( 1 ) );
assertEquals( "org.apache.maven.its.mng3380.other:a:jar:1", artifacts.get( 2 ) );
assertEquals( "org.apache.maven.its.mng3380.other:b:jar:1", artifacts.get( 3 ) );
List paths = verifier.loadLines( "target/test.txt", "UTF-8" );
assertEquals( 6, paths.size() );
assertEquals( "direct-1.jar", paths.get( 2 ) );
assertEquals( "transitive-2.jar", paths.get( 3 ) );
assertEquals( "a-1.jar", paths.get( 4 ) );
assertEquals( "b-1.jar", paths.get( 5 ) );
} }
private void installDependencies( File testDir )
throws Exception
{
// install projects
String path = testDir.getAbsolutePath() //
+ "/other-c";
Verifier verifier = new Verifier(path);
verifier.executeGoal("install");
path = testDir.getAbsolutePath() //
+ "/other-b";
verifier = new Verifier(path);
verifier.executeGoal("install");
path = testDir.getAbsolutePath() //
+ "/other-a";
verifier = new Verifier(path);
verifier.executeGoal("install");
path = testDir.getAbsolutePath() //
+ "/transdep-old";
verifier = new Verifier(path);
verifier.executeGoal("install");
path = testDir.getAbsolutePath() //
+ "/transdep-new-1";
verifier = new Verifier(path);
verifier.executeGoal("install");
path = testDir.getAbsolutePath() //
+ "/transdep-new-2";
verifier = new Verifier(path);
verifier.executeGoal("install");
path = testDir.getAbsolutePath() //
+ "/direct-dep";
verifier = new Verifier(path);
verifier.executeGoal("install");
}
private void deleteArtifacts( Verifier verifier )
throws Exception
{
// delete projects
verifier.deleteArtifact( //
"other-groupId", //
"other-artifactId-c", //
"1", //
"jar");
verifier.deleteArtifact( //
"other-groupId", //
"other-artifactId-c", //
"1", //
"pom");
verifier.assertArtifactNotPresent( //
"other-groupId", //
"other-artifactId-c", //
"1", //
"jar");
verifier.assertArtifactNotPresent( //
"other-groupId", //
"other-artifactId-c", //
"1", //
"pom");
verifier.deleteArtifact( //
"other-groupId", //
"other-artifactId-b", //
"1", //
"jar");
verifier.deleteArtifact( //
"other-groupId", //
"other-artifactId-b", //
"1", //
"pom");
verifier.assertArtifactNotPresent( //
"other-groupId", //
"other-artifactId-b", //
"1", //
"jar");
verifier.assertArtifactNotPresent( //
"other-groupId", //
"other-artifactId-b", //
"1", //
"pom");
verifier.deleteArtifact( //
"other-groupId", //
"other-artifactId-a", //
"1", //
"jar");
verifier.deleteArtifact( //
"other-groupId", //
"other-artifactId-a", //
"1", //
"pom");
verifier.assertArtifactNotPresent( //
"other-groupId", //
"other-artifactId-a", //
"1", //
"jar");
verifier.assertArtifactNotPresent( //
"other-groupId", //
"other-artifactId-a", //
"1", //
"pom");
verifier.deleteArtifact( //
"transitive-dependency-old-groupId", //
"transitive-dependency-artifactId", //
"1", //
"jar");
verifier.deleteArtifact( //
"transitive-dependency-old-groupId", //
"transitive-dependency-artifactId", //
"1", //
"pom");
verifier.assertArtifactNotPresent( //
"transitive-dependency-old-groupId", //
"transitive-dependency-artifactId", //
"1", //
"jar");
verifier.assertArtifactNotPresent( //
"transitive-dependency-old-groupId", //
"transitive-dependency-artifactId", //
"1", //
"pom");
verifier.deleteArtifact( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"1", //
"jar");
verifier.deleteArtifact( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"1", //
"pom");
verifier.assertArtifactNotPresent( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"1", //
"jar");
verifier.assertArtifactNotPresent( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"1", //
"pom");
verifier.deleteArtifact( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"2", //
"jar");
verifier.deleteArtifact( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"2", //
"pom");
verifier.assertArtifactNotPresent( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"2", //
"jar");
verifier.assertArtifactNotPresent( //
"transitive-dependency-new-groupId", //
"transitive-dependency-artifactId", //
"2", //
"pom");
verifier.deleteArtifact( //
"direct-dependency-groupId", //
"direct-dependency-artifactId", //
"1", //
"jar");
verifier.deleteArtifact( //
"direct-dependency-groupId", //
"direct-dependency-artifactId", //
"1", //
"pom");
verifier.assertArtifactNotPresent( //
"direct-dependency-groupId", //
"direct-dependency-artifactId", //
"1", //
"jar");
verifier.assertArtifactNotPresent( //
"direct-dependency-groupId", //
"direct-dependency-artifactId", //
"1", //
"pom");
verifier.deleteArtifact( //
"root-groupId", //
"root-artifactId", //
"1", //
"jar");
verifier.deleteArtifact( //
"root-groupId", //
"root-artifactId", //
"1", //
"pom");
verifier.assertArtifactNotPresent( //
"root-groupId", //
"root-artifactId", //
"1", //
"jar");
verifier.assertArtifactNotPresent( //
"root-groupId", //
"root-artifactId", //
"1", //
"pom");
}
} }

View File

@ -1,28 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>root-groupId</groupId>
<artifactId>root-artifactId</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>direct-dependency-groupId</groupId>
<artifactId>direct-dependency-artifactId</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>transitive-dependency-new-groupId</groupId>
<artifactId>transitive-dependency-artifactId</artifactId>
<version>2</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>

View File

@ -1,7 +0,0 @@
package tests;
import tests.TransitiveComponent2;
import tests.OtherComponentA;
import tests.OtherComponentB;
public class RootComponent{}

View File

@ -1,18 +0,0 @@
package tests;
import junit.framework.TestCase;
public class DependencyManagementTest
extends TestCase
{
public void testWrongTransitiveArtifactIsAvoided()
{
assertNull( Thread.currentThread().getContextClassLoader().getResource( "tests/TransitiveComponent1.class" ) );
}
public void testOtherCArtifactIsAvoided()
{
assertNull( Thread.currentThread().getContextClassLoader().getResource( "tests/OtherComponentC.class" ) );
}
}

View File

@ -1,13 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>direct-dependency-groupId</groupId>
<artifactId>direct-dependency-artifactId</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>transitive-dependency-old-groupId</groupId>
<artifactId>transitive-dependency-artifactId</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -1,6 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>other-groupId</groupId>
<artifactId>other-artifactId-a</artifactId>
<version>1</version>
</project>

View File

@ -1,4 +0,0 @@
package tests;
public class OtherComponentA
{}

View File

@ -1,6 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>other-groupId</groupId>
<artifactId>other-artifactId-b</artifactId>
<version>1</version>
</project>

View File

@ -1,4 +0,0 @@
package tests;
public class OtherComponentB
{}

View File

@ -1,6 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>other-groupId</groupId>
<artifactId>other-artifactId-c</artifactId>
<version>1</version>
</project>

View File

@ -1,4 +0,0 @@
package tests;
public class OtherComponentC
{}

View File

@ -0,0 +1,88 @@
<?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.mng3380</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<name>Maven Integration Test :: MNG-3380</name>
<description>
Verify that dependency resolution considers dependency management also for relocated artifacts.
</description>
<repositories>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng3380</groupId>
<artifactId>direct</artifactId>
<version>1</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Manage the version of a relocated transitive dependency -->
<groupId>org.apache.maven.its.mng3380.new</groupId>
<artifactId>transitive</artifactId>
<version>2</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<id>test</id>
<phase>validate</phase>
<configuration>
<projectArtifacts>target/artifacts.txt</projectArtifacts>
<testClassPath>target/test.txt</testClassPath>
<significantPathLevels>1</significantPathLevels>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,63 @@
<?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.mng3380</groupId>
<artifactId>direct</artifactId>
<version>1</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng3380.old</groupId>
<artifactId>transitive</artifactId>
<version>1</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3380</groupId>
<artifactId>direct</artifactId>
<version>1</version>
<versioning>
<versions>
<version>1</version>
</versions>
<lastUpdated>20081129173042</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,68 @@
<?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.mng3380.new</groupId>
<artifactId>transitive</artifactId>
<version>1</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng3380.other</groupId>
<artifactId>a</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng3380.other</groupId>
<artifactId>c</artifactId>
<version>1</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -0,0 +1,68 @@
<?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.mng3380.new</groupId>
<artifactId>transitive</artifactId>
<version>2</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng3380.other</groupId>
<artifactId>a</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng3380.other</groupId>
<artifactId>b</artifactId>
<version>1</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3380.new</groupId>
<artifactId>transitive</artifactId>
<version>1</version>
<versioning>
<versions>
<version>1</version>
<version>2</version>
</versions>
<lastUpdated>20081129172258</lastUpdated>
</versioning>
</metadata>

View File

@ -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.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.mng3380.old</groupId>
<artifactId>transitive</artifactId>
<version>1</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
<relocation>
<groupId>org.apache.maven.its.mng3380.new</groupId>
</relocation>
</distributionManagement>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</project>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3380.old</groupId>
<artifactId>transitive</artifactId>
<version>1</version>
<versioning>
<versions>
<version>1</version>
</versions>
<lastUpdated>20081129172839</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,55 @@
<?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.mng3380.other</groupId>
<artifactId>a</artifactId>
<version>1</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3380.other</groupId>
<artifactId>a</artifactId>
<version>1</version>
<versioning>
<versions>
<version>1</version>
</versions>
<lastUpdated>20081129171318</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,55 @@
<?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.mng3380.other</groupId>
<artifactId>b</artifactId>
<version>1</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3380.other</groupId>
<artifactId>b</artifactId>
<version>1</version>
<versioning>
<versions>
<version>1</version>
</versions>
<lastUpdated>20081129171508</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,55 @@
<?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.mng3380.other</groupId>
<artifactId>c</artifactId>
<version>1</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3380.other</groupId>
<artifactId>c</artifactId>
<version>1</version>
<versioning>
<versions>
<version>1</version>
</versions>
<lastUpdated>20081129171525</lastUpdated>
</versioning>
</metadata>

View File

@ -1,18 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>transitive-dependency-new-groupId</groupId>
<artifactId>transitive-dependency-artifactId</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>other-groupId</groupId>
<artifactId>other-artifactId-a</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>other-groupId</groupId>
<artifactId>other-artifactId-c</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -1,7 +0,0 @@
package tests;
import tests.OtherComponentA;
import tests.OtherComponentC;
public class TransitiveComponent1
{}

View File

@ -1,18 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>transitive-dependency-new-groupId</groupId>
<artifactId>transitive-dependency-artifactId</artifactId>
<version>2</version>
<dependencies>
<dependency>
<groupId>other-groupId</groupId>
<artifactId>other-artifactId-a</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>other-groupId</groupId>
<artifactId>other-artifactId-b</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -1,7 +0,0 @@
package tests;
import tests.OtherComponentA;
import tests.OtherComponentB;
public class TransitiveComponent2
{}

View File

@ -1,11 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>transitive-dependency-old-groupId</groupId>
<artifactId>transitive-dependency-artifactId</artifactId>
<version>1</version>
<distributionManagement>
<relocation>
<groupId>transitive-dependency-new-groupId</groupId>
</relocation>
</distributionManagement>
</project>

View File

@ -1,4 +0,0 @@
package tests;
public class TransitiveOldComponent1
{}