org.apache.maven.archetype.mojos
Class IntegrationTestMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.archetype.mojos.IntegrationTestMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
public class IntegrationTestMojo
- extends AbstractMojo
Execute the archetype integration tests, consisting in generating projects from the current archetype and
optionally comparing generated projects with reference copy.
Each IT consists of a sub-directory in src/test/resources/projects
containing:
- a
goal.txt
file, containing a list of goals to run against the generated project (can be empty,
content ignored before maven-archetype-plugin 2.1),
- an
archetype.properties
file, containing properties for project generation,
- an optional
reference/
directory containing a reference copy of the expected project created from the IT.
Notice that it is expected to be run as part as of a build after the package
phase and not directly
as a goal from CLI.
- Author:
- rafale
- Is defined by the goal name:
- integration-test
- Requires a Maven project to run:
- true
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegrationTestMojo
public IntegrationTestMojo()
execute
public void execute()
throws MojoExecutionException,
MojoFailureException
- Throws:
MojoExecutionException
MojoFailureException
buildInterpolatedFile
protected void buildInterpolatedFile(File originalFile,
File interpolatedFile)
throws MojoExecutionException
- Throws:
MojoExecutionException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.