Package org.apache.maven.archetype.mojos
Class CreateProjectFromArchetypeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate",
requiresProject=false)
@Execute(phase=GENERATE_SOURCES)
public class CreateProjectFromArchetypeMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.plugin.ContextEnabled
Generates a new project from an archetype, or updates 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
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionCreateProjectFromArchetypeMojo(ArchetypeManager manager, ArchetypeSelector selector, ArchetypeGenerationConfigurator configurator, org.apache.maven.shared.invoker.Invoker invoker, org.eclipse.aether.RepositorySystem repositorySystem) -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.ContextEnabled
getPluginContext, setPluginContext
-
Constructor Details
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-