|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArchetypeManager
Field Summary | |
---|---|
static String |
ROLE
|
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)
|
Field Detail |
---|
static final String ROLE
Method Detail |
---|
ArchetypeCreationResult createArchetypeFromProject(ArchetypeCreationRequest request)
request
-
ArchetypeGenerationResult generateProjectFromArchetype(ArchetypeGenerationRequest request)
request
-
ArchetypeCatalog getInternalCatalog()
ArchetypeCatalog getDefaultLocalCatalog()
${user.home}/.m2/repository/archetype-catalog.xml
.
ArchetypeCatalog getLocalCatalog(String path)
path
- the catalog file path or directory containing the catalog file.
ArchetypeCatalog getRemoteCatalog()
http://repo1.maven.org/maven2/archetype-catalog.xml
.
ArchetypeCatalog getRemoteCatalog(String url)
'archetype-catalog.xml'
is appended to it for search.
url
- the catalog url or base url containing the catalog file.
File archiveArchetype(File archetypeDirectory, File outputDirectory, String finalName) throws org.apache.maven.artifact.DependencyResolutionRequiredException, IOException
archetypeDirectory
- outputDirectory
- finalName
-
org.apache.maven.artifact.DependencyResolutionRequiredException
IOException
void updateLocalCatalog(Archetype archetype, String path)
void updateLocalCatalog(Archetype archetype)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |