org.apache.maven.archetype.mojos
Class CreateProjectFromArchetypeMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class CreateProjectFromArchetypeMojo
extends AbstractMojo
implements ContextEnabled

Generates a new project from an archetype, or updated the actual project if using a partial archetype. If the project is fully generated, it is generated in a directory corresponding to its artifactId. If the project is updated with a partial archetype, it is done in the current directory.

Author:
rafale
Is defined to be executed in:
phase:
generate-sources
Is defined by the goal name:
generate
Requires a Maven project to run:
false

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CreateProjectFromArchetypeMojo()
           
 
Method Summary
 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
 
Methods inherited from interface org.apache.maven.plugin.ContextEnabled
getPluginContext, setPluginContext
 

Constructor Detail

CreateProjectFromArchetypeMojo

public CreateProjectFromArchetypeMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Specified by:
execute in interface Mojo
Throws:
MojoExecutionException
MojoFailureException


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.