o Decoupled it0029 from the Compiler Plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@696487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-09-17 22:01:45 +00:00
parent 41b68439f0
commit 233f6c11c5
4 changed files with 67 additions and 40 deletions

View File

@ -16,14 +16,14 @@ public class MavenIT0029Test
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0029" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifact( "org.apache.maven.it", "maven-it-it0029", "1.0-SNAPSHOT", "jar" );
verifier.deleteArtifact( "org.apache.maven.it", "maven-it-it0029-child", "1.0-SNAPSHOT", "jar" );
verifier.executeGoal( "install" );
verifier.assertFilePresent( "child-project/target/classes/org/apache/maven/it0029/Person.class" );
verifier.assertFilePresent( "plugin-management-configuration.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}
}

View File

@ -1,27 +1,51 @@
<?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.it0029</groupId>
<artifactId>maven-it-it0029</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>child-project</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<executions>
<execution>
<id>test</id>
<phase>initialize</phase>
<goals>
<goal>file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

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

View File

@ -1,12 +1,35 @@
<?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 :: it0029</name>
<groupId>org.apache.maven.its.it0029</groupId>
<artifactId>maven-it-it0029</artifactId>
<description>Test for pluginManagement injection of plugin configuration.</description>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Maven Integration Test :: it0029</name>
<description>Test for pluginManagement injection of plugin configuration.</description>
<modules>
<module>child-project</module>
</modules>
@ -15,12 +38,10 @@
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
<pathname>plugin-management-configuration.txt</pathname>
</configuration>
</plugin>
</plugins>