|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.DefaultArchetype
public class DefaultArchetype
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.archetype.Archetype |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultArchetype()
|
|
| Method Summary | |
|---|---|
java.io.File |
archiveArchetype(java.io.File archetypeDirectory,
java.io.File outputDirectory,
java.lang.String finalName)
Creates a jar file for an archetype. |
ArchetypeCreationResult |
createArchetypeFromProject(ArchetypeCreationRequest request)
A command to create an OldArchetype from an existing Maven project given the suppled creation request. |
ArchetypeGenerationResult |
generateProjectFromArchetype(ArchetypeGenerationRequest request)
A command to generate a Maven project from an OldArchetype given the suppled generation request. |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getDefaultLocalCatalog()
Gives the catalog of archetypes located in $user.home/.m2/repository/archetype-catalog.xml. |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getInternalCatalog()
Gives the catalog of archetypes internal to the plugin. |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getLocalCatalog(java.lang.String path)
Gives the catalog of archetypes located in the given path. |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getRemoteCatalog()
Gives the catalog of archetypes located at http://repo1.maven.org/maven2/archetype-catalog.xml. |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getRemoteCatalog(java.lang.String url)
Gives the catalog of archetypes located at the given url. |
void |
updateLocalCatalog(org.apache.maven.archetype.catalog.Archetype archetype)
|
void |
updateLocalCatalog(org.apache.maven.archetype.catalog.Archetype archetype,
java.lang.String path)
|
void |
zip(java.io.File sourceDirectory,
java.io.File archive)
|
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultArchetype()
| Method Detail |
|---|
public ArchetypeCreationResult createArchetypeFromProject(ArchetypeCreationRequest request)
Archetype
createArchetypeFromProject in interface Archetypepublic ArchetypeGenerationResult generateProjectFromArchetype(ArchetypeGenerationRequest request)
Archetype
generateProjectFromArchetype in interface Archetype
public java.io.File archiveArchetype(java.io.File archetypeDirectory,
java.io.File outputDirectory,
java.lang.String finalName)
throws org.apache.maven.artifact.DependencyResolutionRequiredException,
java.io.IOException
Archetype
archiveArchetype in interface Archetypeorg.apache.maven.artifact.DependencyResolutionRequiredException
java.io.IOException
public void zip(java.io.File sourceDirectory,
java.io.File archive)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.maven.archetype.catalog.ArchetypeCatalog getInternalCatalog()
Archetype
getInternalCatalog in interface Archetypepublic org.apache.maven.archetype.catalog.ArchetypeCatalog getDefaultLocalCatalog()
Archetype
getDefaultLocalCatalog in interface Archetypepublic org.apache.maven.archetype.catalog.ArchetypeCatalog getLocalCatalog(java.lang.String path)
Archetype
getLocalCatalog in interface Archetypepath - the catalog file path or directory containing the catalog file.
public org.apache.maven.archetype.catalog.ArchetypeCatalog getRemoteCatalog()
Archetype
getRemoteCatalog in interface Archetypepublic org.apache.maven.archetype.catalog.ArchetypeCatalog getRemoteCatalog(java.lang.String url)
Archetype
getRemoteCatalog in interface Archetypeurl - the catalog url or base url containing the catalog file.
public void updateLocalCatalog(org.apache.maven.archetype.catalog.Archetype archetype)
updateLocalCatalog in interface Archetype
public void updateLocalCatalog(org.apache.maven.archetype.catalog.Archetype archetype,
java.lang.String path)
updateLocalCatalog in interface Archetype
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||