integration test updates relating to phases

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163434 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-02-28 23:37:19 +00:00
parent a4efc3e8bf
commit 8fc9a29003
11 changed files with 8 additions and 79 deletions

View File

@ -25,6 +25,7 @@ import java.io.FileWriter;
/**
* @goal touch
* @phase process-sources
*
* @description Goal which cleans the build
*

View File

@ -25,12 +25,9 @@ it0006: Simple goal decoration. We introduce a preGoal and a postGoal to the
it0007: We specify a parent in the POM and make sure that it is downloaded as
part of the process.
it0008: Simple goal decoration where a preGoal belongs to a plugin that must
it0008: Simple goal decoration where a plugin binds to a phase and the plugin must
be downloaded from a remote repository before it can be executed.
it0009: Simple goal decoration where a postGoal belongs to a plugin that must
be downloaded from a remote repository before it can be executed.
it0010: Since the artifact resolution does not use the project builder, we must
ensure that the full hierarchy of all dependencies is resolved. This
includes the dependencies of the parent-pom's of dependencies. This test

View File

@ -6,8 +6,7 @@ it0004
it0005
it0006
it0007
#it0008
#it0009
it0008
it0010
it0011
it0012

View File

@ -12,11 +12,10 @@
</dependency>
</dependencies>
<preGoals>
<preGoal>
<name>compiler:compile</name>
<attain>core-it:touch</attain>
</preGoal>
</preGoals>
<plugins>
<plugin>
<id>core-it</id>
</plugin>
</plugins>
</project>

View File

@ -1,10 +0,0 @@
*~
*.log
target
*.ipr
*.iws
dist
target
.classpath
.project
log.txt

View File

@ -1 +0,0 @@
target/touch.txt

View File

@ -1 +0,0 @@
compile

View File

@ -1,22 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>maven</groupId>
<artifactId>maven-core-it0009</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>test</type>
</dependency>
</dependencies>
<postGoals>
<postGoal>
<name>compiler:compile</name>
<attain>core-it:touch</attain>
</postGoal>
</postGoals>
</project>

View File

@ -1 +0,0 @@
rm ${localRepository}/maven/plugins/maven-core-it-plugin-1.0-SNAPSHOT.jar

View File

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

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0009;
import junit.framework.TestCase;
public class PersonTest
extends TestCase
{
public void testPerson()
{
Person person = new Person();
person.setName( "foo" );
assertEquals( "foo", person.getName() );
}
}