o Reduced coupling of it0019 with production plugins

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@729993 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-12-29 20:31:09 +00:00
parent a7ae0adf19
commit 915592f104
4 changed files with 32 additions and 23 deletions

View File

@ -36,11 +36,12 @@ public class MavenIT0019Test
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0019" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "compile" );
verifier.assertFilePresent( "target/classes/org/apache/maven/it0019/Person.class" );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.executeGoal( "process-resources" );
verifier.assertFilePresent( "target/classes/test.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}
}

View File

@ -1,14 +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 :: it0019</name>
<groupId>org.apache.maven.its.it0019</groupId>
<artifactId>maven-it-it0019</artifactId>
<description>Test that a version is managed by pluginManagement in the super POM</description>
<version>1.0</version>
<name>Maven Integration Test :: it0019</name>
<description>Test that a version is managed by pluginManagement in the super POM</description>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<artifactId>maven-resources-plugin</artifactId>
<!-- version should be managed via super POM -->
</plugin>
</plugins>

View File

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