mirror of https://github.com/apache/maven.git
[MNG-4167] Removing until we decide how to implement this (probably in Maven 3). Also, limit mng-3057 to 2.1.0 only, since it was withdrawn for 2.2.0 release.
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@782164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4e10f96234
commit
41704269d1
|
@ -47,7 +47,7 @@ public class MavenITmng3057VersionExprTransformationsTest
|
|||
public MavenITmng3057VersionExprTransformationsTest()
|
||||
{
|
||||
// TODO: port to 3.x
|
||||
super( "[2.1.0,)" ); // only test in 2.1.0+
|
||||
super( "[2.1.0,2.1.1)" ); // only test in 2.1.0
|
||||
}
|
||||
|
||||
public void testitMNG3057 ()
|
||||
|
|
|
@ -1,84 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package org.apache.maven.it;
|
||||
|
||||
import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
|
||||
import org.apache.maven.it.util.ResourceExtractor;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-4167">MNG-4167</a>.
|
||||
*
|
||||
* @todo Fill in a better description of what this test verifies!
|
||||
*
|
||||
* @author <a href="mailto:brianf@apache.org">Brian Fox</a>
|
||||
* @author jdcasey
|
||||
*
|
||||
*/
|
||||
public class MavenITmng4167PluginAndCoordXFormPOMTest
|
||||
extends AbstractMavenIntegrationTestCase
|
||||
{
|
||||
public MavenITmng4167PluginAndCoordXFormPOMTest()
|
||||
throws InvalidVersionSpecificationException
|
||||
{
|
||||
super( "[2.2.0,)" );
|
||||
}
|
||||
|
||||
public void testIt ()
|
||||
throws Exception
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4167" );
|
||||
|
||||
Verifier verifier;
|
||||
|
||||
verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng4167", "mng-4167", "1", "pom" );
|
||||
|
||||
String specVersion = System.getProperty( "java.specification.version" );
|
||||
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng4167." + specVersion, "mng-4167-" + specVersion, "1-"
|
||||
+ specVersion, "pom" );
|
||||
|
||||
verifier.setCliOptions( Collections.singletonList( "-X" ) );
|
||||
|
||||
verifier.executeGoal( "install" );
|
||||
|
||||
List originalPomLines = verifier.loadFile( new File( testDir, "pom.xml" ), false );
|
||||
|
||||
List derivedPomLines = verifier.loadFile( new File( testDir, "target/pom-copy.xml" ), false );
|
||||
|
||||
assertFalse( derivedPomLines.equals( originalPomLines ) );
|
||||
|
||||
File repoPomPath =
|
||||
new File( verifier.getArtifactPath( "org.apache.maven.its.mng4167." + specVersion, "mng-4167-"
|
||||
+ specVersion, "1-" + specVersion, "pom" ) );
|
||||
|
||||
List repoPomLines = verifier.loadFile( repoPomPath, false );
|
||||
|
||||
assertEquals( repoPomLines, derivedPomLines );
|
||||
|
||||
verifier.verifyErrorFreeLog();
|
||||
|
||||
verifier.resetStreams();
|
||||
}
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven.its.mng4167.${java.specification.version}</groupId>
|
||||
<artifactId>mng-4167-${java.specification.version}</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1-${java.specification.version}</version>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>some.group.id.${java.specification.version}</groupId>
|
||||
<artifactId>some-artifact-id-${java.specification.version}</artifactId>
|
||||
<version>1-${java.specification.version}</version>
|
||||
<classifier>cls-${java.specification.version}</classifier>
|
||||
<type>jni-${java.specification.version}</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-touch</artifactId>
|
||||
<version>2.1-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-pom</id>
|
||||
<goals>
|
||||
<goal>copy-pom</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
Loading…
Reference in New Issue