org.apache.maven.plugin.archetype
Class MavenArchetypeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.archetype.MavenArchetypeMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class MavenArchetypeMojo
- extends org.apache.maven.plugin.AbstractMojo
The archetype creation goal looks for an archetype with a given groupId,
artifactId, and version and retrieves it from the remote repository. Once the
archetype is retrieved, it is then processed against a set of user parameters
to create a working Maven project.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
org.apache.maven.artifact.repository.ArtifactRepository |
createRepository(java.lang.String url,
java.lang.String repositoryId)
|
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 |
MavenArchetypeMojo
public MavenArchetypeMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createRepository
public org.apache.maven.artifact.repository.ArtifactRepository createRepository(java.lang.String url,
java.lang.String repositoryId)
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.