o Decoupled it0061 from production plugins

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@709679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-11-01 11:44:00 +00:00
parent 1c82b32a8d
commit c509cb8737
5 changed files with 58 additions and 34 deletions

View File

@ -37,13 +37,15 @@ public class MavenIT0061Test
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0061" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "deploy" );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.executeGoal( "validate" );
verifier.assertFilePresent( "target/test-repo/org.apache.maven.its.it0061/jars/maven-it-it0061-1.0.jar" );
verifier.assertFilePresent( "target/test-repo/org.apache.maven.its.it0061/poms/maven-it-it0061-1.0.pom" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}
}

View File

@ -1,13 +1,38 @@
<?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 :: it0061</name>
<groupId>org.apache.maven.its.it0061</groupId>
<artifactId>maven-it-it0061</artifactId>
<description>Verify that deployment of artifacts to a legacy-layout repository
results in a groupId directory of 'the.full.group.id' instead of
'the/full/group/id'.</description>
<packaging>jar</packaging>
<version>1.0</version>
<packaging>jar</packaging>
<name>Maven Integration Test :: it0061</name>
<description>
Verify that deployment of artifacts to a legacy-layout repository
results in a groupId directory of 'the.full.group.id' instead of
'the/full/group/id'.
</description>
<distributionManagement>
<repository>
@ -17,13 +42,27 @@
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-artifact</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<mainFile>artifact.jar</mainFile>
</configuration>
<executions>
<execution>
<id>deploy</id>
<phase>validate</phase>
<goals>
<goal>set</goal>
<goal>attach-pom</goal>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0061;
public class Person
{
private String name;
public void setName( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
}