mirror of https://github.com/apache/maven.git
o Deleted it0118
(This test was meant to check MNG-2877 but it fails to detect the regression MNG-2921 that was caused by the patch for MNG-2877. The test that is now in place for MNG-2921 subsumes it0118.) git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@709796 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e1803fc61
commit
e6686add99
|
@ -173,7 +173,6 @@ MavenITmng3645POMSyntaxErrorTest
|
||||||
suite.addTestSuite( MavenIT0131SiteLifecycleTest.class );
|
suite.addTestSuite( MavenIT0131SiteLifecycleTest.class );
|
||||||
suite.addTestSuite( MavenIT0130CleanLifecycleTest.class );
|
suite.addTestSuite( MavenIT0130CleanLifecycleTest.class );
|
||||||
suite.addTestSuite( MavenIT0129ResourceProvidedToAPluginAsAPluginDependencyTest.class );
|
suite.addTestSuite( MavenIT0129ResourceProvidedToAPluginAsAPluginDependencyTest.class );
|
||||||
suite.addTestSuite( MavenIT0118AttachedArtifactsInReactorTest.class );
|
|
||||||
suite.addTestSuite( MavenIT0115CustomArtifactHandlerAndCustomLifecycleTest.class );
|
suite.addTestSuite( MavenIT0115CustomArtifactHandlerAndCustomLifecycleTest.class );
|
||||||
suite.addTestSuite( MavenIT0113ServerAuthzAvailableToWagonMgrInPluginTest.class );
|
suite.addTestSuite( MavenIT0113ServerAuthzAvailableToWagonMgrInPluginTest.class );
|
||||||
suite.addTestSuite( MavenIT0110PluginDependenciesComeFromPluginReposTest.class );
|
suite.addTestSuite( MavenIT0110PluginDependenciesComeFromPluginReposTest.class );
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
package org.apache.maven.it;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.apache.maven.it.Verifier;
|
|
||||||
import org.apache.maven.it.util.ResourceExtractor;
|
|
||||||
|
|
||||||
public class MavenIT0118AttachedArtifactsInReactorTest
|
|
||||||
extends AbstractMavenIntegrationTestCase
|
|
||||||
{
|
|
||||||
public void testit0118()
|
|
||||||
throws Exception
|
|
||||||
{
|
|
||||||
File testDir =
|
|
||||||
ResourceExtractor.simpleExtractResources( getClass(), "/it0118-attachedartifactinreactor" );
|
|
||||||
|
|
||||||
Verifier verifier;
|
|
||||||
|
|
||||||
// Install the parent POM
|
|
||||||
verifier = new Verifier( testDir.getAbsolutePath() );
|
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.it0118", "parent", "1.0", "pom" );
|
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.it0118", "one", "1.0", "jar" );
|
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.it0118", "two", "1.0", "pom" );
|
|
||||||
List cliOptions = new ArrayList();
|
|
||||||
verifier.executeGoal( "package" );
|
|
||||||
verifier.verifyErrorFreeLog();
|
|
||||||
verifier.resetStreams();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -26,7 +26,9 @@ import java.io.File;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-2921">MNG-2921</a>.
|
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-2921">MNG-2921</a>. It naturally includes the
|
||||||
|
* test for the related issue <a href="http://jira.codehaus.org/browse/MNG-2877">MNG-2877</a> whose original test was
|
||||||
|
* too weak to prevent this issue.
|
||||||
*
|
*
|
||||||
* @author Benjamin Bentmann
|
* @author Benjamin Bentmann
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
|
@ -45,7 +47,8 @@ public class MavenITmng2921ActiveAttachedArtifactsTest
|
||||||
* consumption on other module's class paths. Note the subtle difference of this test compared to the closely
|
* consumption on other module's class paths. Note the subtle difference of this test compared to the closely
|
||||||
* related issue MNG-2871: This test is about *attached* artifacts, i.e. dependencies that have already been
|
* related issue MNG-2871: This test is about *attached* artifacts, i.e. dependencies that have already been
|
||||||
* packaged. MNG-2871 on the other hand is about dependencies that haven't been packaged yet but merely exist
|
* packaged. MNG-2871 on the other hand is about dependencies that haven't been packaged yet but merely exist
|
||||||
* as loose class files in a module's output directory.
|
* as loose class files in a module's output directory. In other words, this test is concerned with the situation
|
||||||
|
* during the lifecycle phase "package" while MNG-2871 is concerned with earlier phases like "test".
|
||||||
*/
|
*/
|
||||||
public void testitMNG2921()
|
public void testitMNG2921()
|
||||||
throws Exception
|
throws Exception
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>org.apache.maven.its.it0118</groupId>
|
|
||||||
<artifactId>one</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>single</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<descriptorRefs>
|
|
||||||
<descriptorRef>src</descriptorRef>
|
|
||||||
</descriptorRefs>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>org.apache.maven.its.it0118</groupId>
|
|
||||||
<artifactId>parent</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
<modules>
|
|
||||||
<module>one</module>
|
|
||||||
<module>two</module>
|
|
||||||
</modules>
|
|
||||||
</project>
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>org.apache.maven.its.it0118</groupId>
|
|
||||||
<artifactId>two</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven.its.it0118</groupId>
|
|
||||||
<artifactId>one</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<classifier>src</classifier>
|
|
||||||
<type>zip</type>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<version>2.0-alpha-4</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>unpack</id>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>unpack-dependencies</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}/extracted</outputDirectory>
|
|
||||||
<includeTypes>zip</includeTypes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
Loading…
Reference in New Issue