public interface ArchetypeManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLE |
Modifier and Type | Method and Description |
---|---|
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 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 |
getInternalCatalog()
Gives the catalog of archetypes internal to the plugin.
|
ArchetypeCatalog |
getLocalCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest)
Gives the catalog of archetypes located in the given path.
|
ArchetypeCatalog |
getRemoteCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest)
Gives the catalog of archetypes located at
http://repo.maven.apache.org/maven2/archetype-catalog.xml . |
void |
updateLocalCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
Archetype archetype) |
ArchetypeCreationResult createArchetypeFromProject(ArchetypeCreationRequest request)
request
- ArchetypeGenerationResult generateProjectFromArchetype(ArchetypeGenerationRequest request)
request
- ArchetypeCatalog getInternalCatalog()
ArchetypeCatalog getLocalCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest)
buildingRequest
- the catalog file path or directory containing the catalog file.ArchetypeCatalog getRemoteCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest)
http://repo.maven.apache.org/maven2/archetype-catalog.xml
.buildingRequest
- TODOjava.io.File archiveArchetype(java.io.File archetypeDirectory, java.io.File outputDirectory, java.lang.String finalName) throws org.apache.maven.artifact.DependencyResolutionRequiredException, java.io.IOException
archetypeDirectory
- outputDirectory
- finalName
- org.apache.maven.artifact.DependencyResolutionRequiredException
java.io.IOException
void updateLocalCatalog(org.apache.maven.project.ProjectBuildingRequest buildingRequest, Archetype archetype)