org.apache.maven.archetype.mojos
Class IntegrationTestMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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:

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

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
IntegrationTestMojo()
           
 
Method Summary
protected  void buildInterpolatedFile(File originalFile, File interpolatedFile)
           
 void execute()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegrationTestMojo

public IntegrationTestMojo()
Method Detail

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.