o Decoupled ITs from production plugins/deps

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@739837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-02-01 21:10:29 +00:00
parent dd0662ab6a
commit f9a1809e1f
68 changed files with 1276 additions and 249 deletions

View File

@ -23,6 +23,7 @@ import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.util.Collection;
/**
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-505">MNG-505</a>.
@ -35,21 +36,27 @@ public class MavenITmng0505VersionRangeTest
{
/**
* Test version range junit [3.7,) resolves to 3.8.1
* Test version range support.
*/
public void testitMNG505()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0505" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifact( "org.apache.maven", "maven-core-it-support", "1.4", "jar" );
verifier.deleteArtifact( "junit", "junit", "3.8", "jar" );
verifier.executeGoal( "package" );
verifier.assertArtifactPresent( "junit", "junit", "3.8", "jar" );
verifier.assertArtifactPresent( "org.apache.maven", "maven-core-it-support", "1.4", "jar" );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.deleteArtifacts( "org.apache.maven.its.mng0505" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
Collection artifacts = verifier.loadLines( "target/artifacts.txt", "UTF-8" );
assertEquals( 4, artifacts.size() );
assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0505:a:jar:1.1" ) );
assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0505:b:jar:1.0" ) );
assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0505:c:jar:3.8" ) );
assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0505:d:jar:2.1.1" ) );
}
}
}

View File

@ -23,6 +23,7 @@ import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.util.Collection;
/**
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-820">MNG-820</a>.
@ -41,31 +42,21 @@ public class MavenITmng0820ConflictResolutionTest
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0820" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "package" );
verifier.assertFilePresent( "test-component-a/target/test-component-a-0.1.jar" );
verifier.assertFilePresent( "test-component-b/target/test-component-b-0.1.jar" );
verifier.assertFilePresent( "test-component-c/target/test-component-c-0.1.war" );
verifier.assertFilePresent(
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/test-component-a-0.1.jar" );
verifier.assertFilePresent(
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/test-component-b-0.1.jar" );
verifier.assertFilePresent(
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/maven-core-it-support-1.4.jar" );
verifier.assertFilePresent(
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/commons-io-1.0.jar" );
verifier.assertFilePresent(
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/test-component-a-0.1.jar" );
verifier.assertFilePresent(
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/test-component-b-0.1.jar" );
verifier.assertFilePresent(
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/maven-core-it-support-1.4.jar" );
verifier.assertFilePresent( "test-component-c/target/test-component-c-0.1/WEB-INF/lib/commons-io-1.0.jar" );
verifier.assertFileNotPresent(
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/commons-lang-1.0.jar" );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.deleteArtifacts( "org.apache.maven.its.mng0820" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
Collection artifacts = verifier.loadLines( "target/artifacts.txt", "UTF-8" );
assertEquals( 3, artifacts.size() );
assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0820:d:jar:2.0" ) );
assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0820:c:jar:1.4" ) );
assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0820:a:jar:1.0" ) );
assertFalse( artifacts.toString(), artifacts.contains( "org.apache.maven.its.mng0505:b:jar:1.0" ) );
}
}
}

View File

@ -43,16 +43,16 @@ public class MavenITmng0823MojoContextPassingTest
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0823" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifact( "org.apache.maven.its.plugins", "maven-it-plugin-context-passing", "1.0",
"maven-plugin" );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
List goals = Arrays.asList( new String[]{"org.apache.maven.its.plugins:maven-it-plugin-context-passing:throw",
"org.apache.maven.its.plugins:maven-it-plugin-context-passing:catch"} );
verifier.executeGoals( goals );
verifier.assertFilePresent( "target/thrown-value" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}
}

View File

@ -44,6 +44,8 @@ public class MavenITmng0985NonExecutedPluginMngtGoalsTest
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0985" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.executeGoal( "initialize" );
verifier.assertFileNotPresent( "target/unexpected.txt" );
verifier.verifyErrorFreeLog();

View File

@ -44,6 +44,8 @@ public class MavenITmng1052PluginMngtConfigTest
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-1052" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.executeGoal( "process-resources" );
verifier.assertFilePresent( "target/plugin-management.txt" );
verifier.assertFileNotPresent( "target/resources-resources.txt" );

View File

@ -55,8 +55,7 @@ public class MavenITmng1323AntrunDependenciesTest
verifier.deleteDirectory( "a/target" );
verifier.deleteDirectory( "b/target" );
verifier.deleteDirectory( "c/target" );
verifier.deleteArtifact( "org.apache.maven.its.mng1323", "dep-a", "0.1", "jar" );
verifier.deleteArtifact( "org.apache.maven.its.mng1323", "dep-b", "0.1", "jar" );
verifier.deleteArtifacts( "org.apache.maven.its.mng1323" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();

View File

@ -23,7 +23,6 @@ import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
@ -35,6 +34,7 @@ import java.util.List;
public class MavenITmng1412DependenciesOrderTest
extends AbstractMavenIntegrationTestCase
{
public MavenITmng1412DependenciesOrderTest()
{
super( "(2.0.8,)" ); // 2.0.9+
@ -43,20 +43,51 @@ public class MavenITmng1412DependenciesOrderTest
public void testitMNG1412()
throws Exception
{
// The testdir is computed from the location of this file.
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-1412" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
List cliOptions = new ArrayList();
cliOptions.add( "-X" );
verifier.setCliOptions( cliOptions );
verifier.executeGoal( "test" );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.deleteArtifacts( "org.apache.maven.its.mng1412" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
List compileArtifacts = verifier.loadLines( "target/compile-artifacts.txt", "UTF-8" );
assertArtifactOrder( compileArtifacts );
List compileClassPath = verifier.loadLines( "target/compile-classpath.txt", "UTF-8" );
assertClassPathOrder( compileClassPath.subList( 1, compileClassPath.size() ) );
List runtimeArtifacts = verifier.loadLines( "target/runtime-artifacts.txt", "UTF-8" );
assertArtifactOrder( runtimeArtifacts );
List runtimeClassPath = verifier.loadLines( "target/runtime-classpath.txt", "UTF-8" );
assertClassPathOrder( runtimeClassPath.subList( 1, runtimeClassPath.size() ) );
List testArtifacts = verifier.loadLines( "target/test-artifacts.txt", "UTF-8" );
assertArtifactOrder( testArtifacts );
List testClassPath = verifier.loadLines( "target/test-classpath.txt", "UTF-8" );
assertClassPathOrder( testClassPath.subList( 2, testClassPath.size() ) );
}
private void assertArtifactOrder( List artifacts )
{
assertEquals( 4, artifacts.size() );
assertEquals( "org.apache.maven.its.mng1412:a:jar:0.1", artifacts.get( 0 ) );
assertEquals( "org.apache.maven.its.mng1412:c:jar:0.1", artifacts.get( 1 ) );
assertEquals( "org.apache.maven.its.mng1412:b:jar:0.1", artifacts.get( 2 ) );
assertEquals( "org.apache.maven.its.mng1412:d:jar:0.1", artifacts.get( 3 ) );
}
private void assertClassPathOrder( List classpath )
{
assertEquals( 4, classpath.size() );
assertEquals( "a-0.1.jar", classpath.get( 0 ) );
assertEquals( "c-0.1.jar", classpath.get( 1 ) );
assertEquals( "b-0.1.jar", classpath.get( 2 ) );
assertEquals( "d-0.1.jar", classpath.get( 3 ) );
}
}

View File

@ -1,22 +1,94 @@
<?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>
<name>Maven Integration Test :: it0034</name>
<groupId>org.apache.maven.its.it0034</groupId>
<artifactId>maven-it-it0034</artifactId>
<description>Test version range junit [3.7,) resolves to 3.8.1</description>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<name>Maven Integration Test :: MNG-505</name>
<description>
Test version range support.
</description>
<repositories>
<repository>
<id>central</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<!-- Select 3.8 -->
<version>(,3.8.1)</version>
<scope>test</scope>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>a</artifactId>
<!-- lower bound is the only available match -->
<version>[1.1,)</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core-it-support</artifactId>
<version>[1.0,)</version>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>b</artifactId>
<!-- upper bound is the only available match -->
<version>(,1.0]</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>c</artifactId>
<!-- 3.7 and 3.8 are available matches, newer should win -->
<version>(,3.8.1)</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>d</artifactId>
<!-- 2.0 and 2.1.1 are available matches, newer should win -->
<version>(,2.1),(2.1,)</version>
</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/artifacts.txt</compileArtifacts>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>a</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>a</artifactId>
<version>1.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>a</artifactId>
<version>1.0</version>
<versioning>
<release>1.1</release>
<versions>
<version>1.0</version>
<version>1.1</version>
</versions>
<lastUpdated>20090201153111</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>b</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>b</artifactId>
<version>1.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>b</artifactId>
<version>1.0</version>
<versioning>
<release>1.1</release>
<versions>
<version>1.0</version>
<version>1.1</version>
</versions>
<lastUpdated>20090201153127</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>c</artifactId>
<version>3.7</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>c</artifactId>
<version>3.8.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>c</artifactId>
<version>3.8</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>c</artifactId>
<version>3.7</version>
<versioning>
<release>3.8.1</release>
<versions>
<version>3.7</version>
<version>3.8</version>
<version>3.8.1</version>
</versions>
<lastUpdated>20090201153156</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>d</artifactId>
<version>2.0</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>d</artifactId>
<version>2.1.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0505</groupId>
<artifactId>d</artifactId>
<version>2.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0505</groupId>
<artifactId>d</artifactId>
<version>2.0</version>
<versioning>
<release>2.1.1</release>
<versions>
<version>2.0</version>
<version>2.1</version>
<version>2.1.1</version>
</versions>
<lastUpdated>20090201153244</lastUpdated>
</versioning>
</metadata>

View File

@ -1,14 +1,94 @@
<?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>
<name>Maven Integration Test :: it0084</name>
<groupId>org.apache.maven.its.it0084</groupId>
<artifactId>maven-it-it0084</artifactId>
<description>Verify that the collector selecting a particular version gets the correct subtree</description>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>test</artifactId>
<version>0.1</version>
<packaging>pom</packaging>
<modules>
<module>test-component-c</module>
<module>test-component-b</module>
<module>test-component-a</module>
</modules>
<name>Maven Integration Test :: MNG-820</name>
<description>
Verify that the collector selecting a particular version gets the correct subtree.
</description>
<repositories>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<!--
This project has the following *raw* dependency tree:
org.apache.maven.its.mng0820:test:pom:0.1
\- org.apache.maven.its.mng0820:d:jar:2.0:compile
\- org.apache.maven.its.mng0820:c:jar:1.3:compile (1)
\- org.apache.maven.its.mng0820:b:jar:1.0:compile (2)
\- org.apache.maven.its.mng0820:c:jar:1.4:compile (3)
\- org.apache.maven.its.mng0820:a:jar:1.0:compile
With nearest-wins conflict resolution, dependency (3) should be chosen over (1), thereby eliminating dependency (2)
from the closure as well.
-->
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>d</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>c</artifactId>
<version>1.4</version>
</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>
<runtimeArtifacts>target/artifacts.txt</runtimeArtifacts>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>runtime</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng0820</groupId>
<artifactId>a</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>a</artifactId>
<version>1.0</version>
<versioning>
<release>1.0</release>
<versions>
<version>1.0</version>
</versions>
<lastUpdated>20090201194850</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,40 @@
<?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.mng0820</groupId>
<artifactId>b</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>b</artifactId>
<version>1.0</version>
<versioning>
<release>1.0</release>
<versions>
<version>1.0</version>
</versions>
<lastUpdated>20090201194900</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,48 @@
<?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.mng0820</groupId>
<artifactId>c</artifactId>
<version>1.3</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>b</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,48 @@
<?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.mng0820</groupId>
<artifactId>c</artifactId>
<version>1.4</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>a</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>c</artifactId>
<version>1.3</version>
<versioning>
<release>1.4</release>
<versions>
<version>1.3</version>
<version>1.4</version>
</versions>
<lastUpdated>20090201195111</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,48 @@
<?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.mng0820</groupId>
<artifactId>d</artifactId>
<version>2.0</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>c</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng0820</groupId>
<artifactId>d</artifactId>
<version>2.0</version>
<versioning>
<release>2.0</release>
<versions>
<version>2.0</version>
</versions>
<lastUpdated>20090201195332</lastUpdated>
</versioning>
</metadata>

View File

@ -1,19 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>maven-it-it0084</artifactId>
<groupId>org.apache.maven.its.it0084</groupId>
<version>0.1</version>
</parent>
<artifactId>test-component-a</artifactId>
<version>0.1</version>
<name>Test Component A</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core-it-support</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</project>

View File

@ -1,5 +0,0 @@
package it0084;
public class A {
}

View File

@ -1,19 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>maven-it-it0084</artifactId>
<groupId>org.apache.maven.its.it0084</groupId>
<version>0.1</version>
</parent>
<artifactId>test-component-b</artifactId>
<version>0.1</version>
<name>Test Component B</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core-it-support</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</project>

View File

@ -1,29 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>maven-it-it0084</artifactId>
<groupId>org.apache.maven.its.it0084</groupId>
<version>0.1</version>
</parent>
<artifactId>test-component-c</artifactId>
<version>0.1</version>
<name>Test Component C</name>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core-it-support</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.it0084</groupId>
<artifactId>test-component-a</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.it0084</groupId>
<artifactId>test-component-b</artifactId>
<version>0.1</version>
</dependency>
</dependencies>
</project>

View File

@ -1,6 +0,0 @@
package it0084;
public class C
{
}

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app >
</web-app>

View File

@ -1,45 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?><project>
<?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</groupId>
<artifactId>maven-it-MNG1412-DependenciesOrder</artifactId>
<version>0.0.1-SNAPSHOT</version>
<description>Check that dependencies are available in classpath in same order as declared in POM</description>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>test</artifactId>
<version>0.1-SNAPSHOT</version>
<name>Maven Integration Test :: MNG-1412</name>
<description>
Check that dependencies are available in classpath in same order as declared in POM.
</description>
<repositories>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>a</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>c</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>b</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>d</artifactId>
<version>0.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3.1</version><!-- to avoid problem with SUREFIRE-460 -->
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<compileArtifacts>target/compile-artifacts.txt</compileArtifacts>
<compileClassPath>target/compile-classpath.txt</compileClassPath>
<runtimeArtifacts>target/runtime-artifacts.txt</runtimeArtifacts>
<runtimeClassPath>target/runtime-classpath.txt</runtimeClassPath>
<testArtifacts>target/test-artifacts.txt</testArtifacts>
<testClassPath>target/test-classpath.txt</testClassPath>
<significantPathLevels>1</significantPathLevels>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>compile</goal>
<goal>runtime</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>

View File

@ -0,0 +1,40 @@
<?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.mng1412</groupId>
<artifactId>a</artifactId>
<version>0.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>a</artifactId>
<version>0.1</version>
<versioning>
<release>0.1</release>
<versions>
<version>0.1</version>
</versions>
<lastUpdated>20090201203134</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,40 @@
<?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.mng1412</groupId>
<artifactId>b</artifactId>
<version>0.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>b</artifactId>
<version>0.1</version>
<versioning>
<release>0.1</release>
<versions>
<version>0.1</version>
</versions>
<lastUpdated>20090201203222</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,40 @@
<?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.mng1412</groupId>
<artifactId>c</artifactId>
<version>0.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>c</artifactId>
<version>0.1</version>
<versioning>
<release>0.1</release>
<versions>
<version>0.1</version>
</versions>
<lastUpdated>20090201203229</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,40 @@
<?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.mng1412</groupId>
<artifactId>d</artifactId>
<version>0.1</version>
<packaging>jar</packaging>
<properties>
<updateReleaseInfo>true</updateReleaseInfo>
</properties>
<distributionManagement>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng1412</groupId>
<artifactId>d</artifactId>
<version>0.1</version>
<versioning>
<release>0.1</release>
<versions>
<version>0.1</version>
</versions>
<lastUpdated>20090201203236</lastUpdated>
</versioning>
</metadata>

View File

@ -1,58 +0,0 @@
package org.apache.maven.its.itmng1412;
import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
import org.apache.commons.lang.StringUtils;
import junit.framework.TestCase;
/**
* Test that dependencies order in classpath matches pom.xml.
*
* @author <a href="mailto:hboutemy@apache.org">Herve Boutemy</a>
*
*/
public class ITmng1412DependenciesOrderTest
extends TestCase
{
private final static String[] EXTENSIONS = {
// same order as in pom.xml
"commons-net",
"commons-collections",
"commons-lang",
"commons-io",
};
public void testOrder() throws IOException
{
String expected = StringUtils.join( EXTENSIONS, ',' );
StringBuffer found = new StringBuffer();
Enumeration resources = this.getClass().getClassLoader().getResources( "META-INF/MANIFEST.MF" );
while ( resources.hasMoreElements() )
{
URL url = (URL) resources.nextElement();
Manifest manifest = new Manifest( url.openStream() );
Attributes attributes = manifest.getMainAttributes();
String extensionName = attributes.getValue( "Extension-Name" );
if ( ( extensionName != null ) && extensionName.startsWith( "commons" ) )
{
if ( found.length() > 0 )
{
found.append( ',' );
}
found.append( extensionName );
}
}
System.out.println( "Expected:\n\n" + expected + "\n\nFound:\n\n" + found );
assertEquals( "dependencies order in classpath should match pom.xml", expected, found.toString() );
}
}