public interface ArchetypeManager
Modifier and Type | Method and Description |
---|---|
File |
archiveArchetype(File archetypeDirectory,
File outputDirectory,
String finalName)
Deprecated.
replaced by archetype plugin's JarMojo using maven-archiver component for Reproducible Builds
|
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) |
static final String ROLE
ArchetypeCreationResult createArchetypeFromProject(ArchetypeCreationRequest request)
request
- ArchetypeGenerationResult generateProjectFromArchetype(ArchetypeGenerationRequest request)
request
- ArchetypeCatalog getInternalCatalog()
ArchetypeCatalog getLocalCatalog(ProjectBuildingRequest buildingRequest)
buildingRequest
- the catalog file path or directory containing the catalog file.ArchetypeCatalog getRemoteCatalog(ProjectBuildingRequest buildingRequest)
https://repo.maven.apache.org/maven2/archetype-catalog.xml
.buildingRequest
- TODO@Deprecated File archiveArchetype(File archetypeDirectory, File outputDirectory, String finalName) throws DependencyResolutionRequiredException, IOException
archetypeDirectory
- outputDirectory
- finalName
- DependencyResolutionRequiredException
IOException
void updateLocalCatalog(ProjectBuildingRequest buildingRequest, Archetype archetype)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.