@Component(role=ArchetypeManager.class) public class DefaultArchetypeManager extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArchetypeManager
ROLE| Constructor and Description |
|---|
DefaultArchetypeManager() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getInternalCatalog()
Gives the catalog of archetypes internal to the plugin.
|
ArchetypeCatalog |
getLocalCatalog(ProjectBuildingRequest buildingRequest)
Gives the catalog of archetypes located in the given path.
|
ArchetypeCatalog |
getRemoteCatalog(ProjectBuildingRequest buildingRequest)
Gives the catalog of archetypes located at
https://repo.maven.apache.org/maven2/archetype-catalog.xml. |
void |
updateLocalCatalog(ProjectBuildingRequest buildingRequest,
Archetype archetype) |
void |
zip(File sourceDirectory,
File archive) |
public ArchetypeCreationResult createArchetypeFromProject(ArchetypeCreationRequest request)
ArchetypeManagercreateArchetypeFromProject in interface ArchetypeManagerpublic ArchetypeGenerationResult generateProjectFromArchetype(ArchetypeGenerationRequest request)
ArchetypeManagergenerateProjectFromArchetype in interface ArchetypeManagerpublic File archiveArchetype(File archetypeDirectory, File outputDirectory, String finalName) throws DependencyResolutionRequiredException, IOException
ArchetypeManagerarchiveArchetype in interface ArchetypeManagerDependencyResolutionRequiredExceptionIOExceptionpublic void zip(File sourceDirectory, File archive) throws IOException
IOExceptionpublic ArchetypeCatalog getInternalCatalog()
ArchetypeManagergetInternalCatalog in interface ArchetypeManagerpublic ArchetypeCatalog getLocalCatalog(ProjectBuildingRequest buildingRequest)
ArchetypeManagergetLocalCatalog in interface ArchetypeManagerbuildingRequest - the catalog file path or directory containing the catalog file.public ArchetypeCatalog getRemoteCatalog(ProjectBuildingRequest buildingRequest)
ArchetypeManagerhttps://repo.maven.apache.org/maven2/archetype-catalog.xml.getRemoteCatalog in interface ArchetypeManagerbuildingRequest - TODOpublic void updateLocalCatalog(ProjectBuildingRequest buildingRequest, Archetype archetype)
updateLocalCatalog in interface ArchetypeManagerCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.