[MNG-3814] Reactor builds fail due to erroneous cycle in project sorting which does not consider versions

o Added (currently disabled) IT

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@709969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-11-02 22:33:12 +00:00
parent c5df24b1b0
commit 8a38b6ec37
13 changed files with 433 additions and 0 deletions

View File

@ -279,6 +279,7 @@ public static Test suite()
// ----------------------------------------------------------------------------------------------------
// Pending resolution in code
// suite.addTestSuite( MavenITmng3814BogusProjectCycleTest.class );
// suite.addTestSuite( MavenITmng3391ImportScopeErrorScenariosTest.class );
// suite.addTestSuite( MavenITmng3530DynamicPOMInterpolationTest.class );

View File

@ -0,0 +1,59 @@
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 org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.util.Properties;
/**
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-3814">MNG-3814</a>.
*
* @author Benjamin Bentmann
* @version $Id$
*/
public class MavenITmng3814BogusProjectCycleTest
extends AbstractMavenIntegrationTestCase
{
public MavenITmng3814BogusProjectCycleTest()
{
super( "(4,)" );
}
/**
* Verify that the reactor's project sorter considers artifact versions when checking for cycles.
*/
public void testitMNG3813()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3814" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.deleteArtifacts( "org.apache.maven.its.mng3814" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}

View File

@ -0,0 +1,82 @@
<?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.mng3814</groupId>
<artifactId>parent</artifactId>
<version>1-SNAPSHOT</version>
</parent>
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814a-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<repositories>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<!-- Depend on other plugin but using a version that is already released and not part of the reactor build -->
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814b-plugin</artifactId>
<version>1.0</version>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<!-- Depend on other plugin but using a version that is already released and not part of the reactor build -->
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814b-plugin</artifactId>
<version>1.0</version>
</plugin>
</plugins>
</reporting>
</project>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<plugins>
<plugin>
<name>Unnamed - org.apache.maven.its.mng3814:maven-mng3814b-plugin:maven-plugin:1.0</name>
<prefix>mng3814b</prefix>
<artifactId>maven-mng3814b-plugin</artifactId>
</plugin>
</plugins>
</metadata>

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.mng3814</groupId>
<artifactId>maven-mng3814b-plugin</artifactId>
<version>1.0</version>
<packaging>maven-plugin</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</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</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,13 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814b-plugin</artifactId>
<version>1.0</version>
<versioning>
<latest>1.0</latest>
<release>1.0</release>
<versions>
<version>1.0</version>
</versions>
<lastUpdated>20081102222233</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1,82 @@
<?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.mng3814</groupId>
<artifactId>parent</artifactId>
<version>1-SNAPSHOT</version>
</parent>
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814b-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<repositories>
<repository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>maven-core-it</id>
<url>file:///${basedir}/repo</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<!-- Depend on other plugin but using a version that is already released and not part of the reactor build -->
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814a-plugin</artifactId>
<version>1.0</version>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<!-- Depend on other plugin but using a version that is already released and not part of the reactor build -->
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814a-plugin</artifactId>
<version>1.0</version>
</plugin>
</plugins>
</reporting>
</project>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<plugins>
<plugin>
<name>Unnamed - org.apache.maven.its.mng3814:maven-mng3814a-plugin:maven-plugin:1.0</name>
<prefix>mng3814a</prefix>
<artifactId>maven-mng3814a-plugin</artifactId>
</plugin>
</plugins>
</metadata>

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.mng3814</groupId>
<artifactId>maven-mng3814a-plugin</artifactId>
<version>1.0</version>
<packaging>maven-plugin</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</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</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,13 @@
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.maven.its.mng3814</groupId>
<artifactId>maven-mng3814a-plugin</artifactId>
<version>1.0</version>
<versioning>
<latest>1.0</latest>
<release>1.0</release>
<versions>
<version>1.0</version>
</versions>
<lastUpdated>20081102222129</lastUpdated>
</versioning>
</metadata>

View File

@ -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.mng3814</groupId>
<artifactId>parent</artifactId>
<version>1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Maven Integration Test :: MNG-3814</name>
<description>
Verify that the reactor's project sorter considers artifact versions when checking for cycles.
</description>
<modules>
<module>plugin-a</module>
<module>plugin-b</module>
</modules>
</project>