o Decoupled it0018 from production dependencies and re-enabled it for the IT suite

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@699730 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-09-27 20:24:10 +00:00
parent e762352634
commit 1cfb4ec292
27 changed files with 225 additions and 30 deletions

View File

@ -238,6 +238,7 @@ MavenITmng3645POMSyntaxErrorTest
suite.addTestSuite( MavenIT0022Test.class );
suite.addTestSuite( MavenIT0021Test.class );
suite.addTestSuite( MavenIT0019Test.class );
suite.addTestSuite( MavenIT0018Test.class );
suite.addTestSuite( MavenIT0014Test.class );
suite.addTestSuite( MavenIT0012Test.class );
suite.addTestSuite( MavenIT0011Test.class );
@ -265,11 +266,6 @@ MavenITmng3645POMSyntaxErrorTest
// suite.addTestSuite( MavenITmng3284UsingCachedPluginsTest.class );
// suite.addTestSuite( MavenITmng3530DynamicPOMInterpolationTest.class );
// Test 18 always fails because it is trying to delete a
// commonly used artifact (commons-logging-1.0.3) that is in use
// in the repo. It should be redone using fake artifacts.
// suite.addTestSuite( MavenIT0018Test.class );
// this test is flakey on windows and isn't a test of the core.
// suite.addTestSuite( MavenIT0020Test.class );

View File

@ -38,13 +38,11 @@ public class MavenIT0018Test
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0018" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifact( "commons-logging", "commons-logging", "1.0.3", "jar" );
verifier.executeGoal( "package" );
// TODO: I would like to build some small core-it artifacts for this purpose instead
verifier.assertArtifactPresent( "commons-logging", "commons-logging", "1.0.3", "jar" );
verifier.deleteArtifact( "org.apache.maven.its.it0018", "managed-dep", "1.0.3", "jar" );
verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution::compile" );
verifier.assertArtifactPresent( "org.apache.maven.its.it0018", "managed-dep", "1.0.3", "jar" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}
}

View File

@ -1,31 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0018</name>
<groupId>org.apache.maven.its.it0018</groupId>
<artifactId>maven-it-it0018</artifactId>
<description>Ensure that managed dependencies for dependency POMs are calculated
correctly when resolved. Removes commons-logging-1.0.3 and checks it is
redownloaded.</description>
<version>1.0</version>
<name>Maven Integration Test :: it0018</name>
<description>
Ensure that managed dependencies for dependency POMs are calculated
correctly when resolved. Removes managed-dep-1.0.3 and checks it is
redownloaded.
</description>
<dependencies>
<dependency>
<groupId>marmalade</groupId>
<artifactId>marmalade-el-commons</artifactId>
<version>1.0-alpha-2</version>
<exclusions>
<exclusion>
<groupId>servletapi</groupId>
<artifactId>servletapi</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
<groupId>org.apache.maven.its.it0018</groupId>
<artifactId>sub-project</artifactId>
<version>1</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>it0018</id>
<url>file:///${basedir}/repo</url>
</repository>
</repositories>
</project>

View File

@ -0,0 +1 @@
9d0573a18105c41577ed9dddb95ae034eec2d7e6

View File

@ -0,0 +1,36 @@
<?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.it0018</groupId>
<artifactId>managed-dep</artifactId>
<version>1.0.3</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>it0018</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
</project>

View File

@ -0,0 +1 @@
f1bf07a984c1e6b98829c23a6a2a6effd2bdd7ba

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.it0018</groupId>
<artifactId>managed-dep</artifactId>
<version>1.0.3</version>
<versioning>
<versions>
<version>1.0.3</version>
</versions>
<lastUpdated>20080927182553</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1 @@
efa4553a270db522dab004bd2bc2f1360474704b

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.it0018</groupId>
<artifactId>parent</artifactId>
<version>1</version>
<packaging>pom</packaging>
<modules>
<module>sub-project</module>
</modules>
<distributionManagement>
<repository>
<id>it0018</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.it0018</groupId>
<artifactId>managed-dep</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>

View File

@ -0,0 +1 @@
66cb8fca769881525257daecbf8a0e20

View File

@ -0,0 +1 @@
44586adf8825654ae9562495e0a41deef5d0b1ce

View File

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

View File

@ -0,0 +1 @@
2f0fd6ea53dedb2d0b4d127175d5fc3e

View File

@ -0,0 +1 @@
bc704d6c71427307803323023ef7ac9489bb1b1c

View File

@ -0,0 +1 @@
87ce06681ae31a632077b8b76ecc2bdf094e0ace

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.it0018</groupId>
<artifactId>parent</artifactId>
<version>1</version>
</parent>
<artifactId>sub-project</artifactId>
<distributionManagement>
<repository>
<id>it0018</id>
<url>file:///${basedir}/repo</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.it0018</groupId>
<artifactId>managed-dep</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1 @@
371461cbe34e7f569a464b2ea36c0dbebb8eeee3

View File

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

View File

@ -0,0 +1 @@
79a48c196131211f80827db27c824e184f36458b