@Mojo(name="integration-test", requiresProject=true) 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:
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),archetype.properties
file, containing properties for project generation,reference/
directory containing a reference copy of the expected project created from
the IT.package
phase and not directly as a
goal from CLI.Constructor and Description |
---|
IntegrationTestMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildInterpolatedFile(File originalFile,
File interpolatedFile) |
void |
execute() |
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException, MojoFailureException
protected void buildInterpolatedFile(File originalFile, File interpolatedFile) throws MojoExecutionException
MojoExecutionException
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.