|
||||||||||
| 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.DefaultArchetypeManager
public class DefaultArchetypeManager
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.archetype.ArchetypeManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultArchetypeManager()
|
|
| Method Summary | |
|---|---|
File |
archiveArchetype(File archetypeDirectory,
File outputDirectory,
String finalName)
Creates a jar file for an archetype. |
ArchetypeCreationResult |
createArchetypeFromProject(ArchetypeCreationRequest request)
A command to create an archetype from an existing Maven project given the supplied creation request. |
ArchetypeGenerationResult |
generateProjectFromArchetype(ArchetypeGenerationRequest request)
A command to generate a Maven project from an archetype given the supplied generation request. |
ArchetypeCatalog |
getDefaultLocalCatalog()
Gives the catalog of archetypes located in ${user.home}/.m2/repository/archetype-catalog.xml. |
ArchetypeCatalog |
getInternalCatalog()
Gives the catalog of archetypes internal to the plugin. |
ArchetypeCatalog |
getLocalCatalog(String path)
Gives the catalog of archetypes located in the given path. |
ArchetypeCatalog |
getRemoteCatalog()
Gives the catalog of archetypes located at http://repo1.maven.org/maven2/archetype-catalog.xml. |
ArchetypeCatalog |
getRemoteCatalog(String url)
Gives the catalog of archetypes located at the given url. |
void |
updateLocalCatalog(Archetype archetype)
|
void |
updateLocalCatalog(Archetype archetype,
String path)
|
void |
zip(File sourceDirectory,
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 DefaultArchetypeManager()
| Method Detail |
|---|
public ArchetypeCreationResult createArchetypeFromProject(ArchetypeCreationRequest request)
ArchetypeManager
createArchetypeFromProject in interface ArchetypeManagerpublic ArchetypeGenerationResult generateProjectFromArchetype(ArchetypeGenerationRequest request)
ArchetypeManager
generateProjectFromArchetype in interface ArchetypeManager
public File archiveArchetype(File archetypeDirectory,
File outputDirectory,
String finalName)
throws org.apache.maven.artifact.DependencyResolutionRequiredException,
IOException
ArchetypeManager
archiveArchetype in interface ArchetypeManagerorg.apache.maven.artifact.DependencyResolutionRequiredException
IOException
public void zip(File sourceDirectory,
File archive)
throws IOException
IOExceptionpublic ArchetypeCatalog getInternalCatalog()
ArchetypeManager
getInternalCatalog in interface ArchetypeManagerpublic ArchetypeCatalog getDefaultLocalCatalog()
ArchetypeManager${user.home}/.m2/repository/archetype-catalog.xml.
getDefaultLocalCatalog in interface ArchetypeManagerpublic ArchetypeCatalog getLocalCatalog(String path)
ArchetypeManager
getLocalCatalog in interface ArchetypeManagerpath - the catalog file path or directory containing the catalog file.
public ArchetypeCatalog getRemoteCatalog()
ArchetypeManagerhttp://repo1.maven.org/maven2/archetype-catalog.xml.
getRemoteCatalog in interface ArchetypeManagerpublic ArchetypeCatalog getRemoteCatalog(String url)
ArchetypeManager'archetype-catalog.xml' is appended to it for search.
getRemoteCatalog in interface ArchetypeManagerurl - the catalog url or base url containing the catalog file.
public void updateLocalCatalog(Archetype archetype)
updateLocalCatalog in interface ArchetypeManager
public void updateLocalCatalog(Archetype archetype,
String path)
updateLocalCatalog in interface ArchetypeManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||