Interface ArchetypeArtifactManager
- All Known Implementing Classes:
DefaultArchetypeArtifactManager
public interface ArchetypeArtifactManager
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexists(String archetypeGroupId, String archetypeArtifactId, String archetypeVersion, List<org.eclipse.aether.repository.RemoteRepository> repos, org.eclipse.aether.RepositorySystemSession repositorySystemSession) getArchetypeFile(String groupId, String artifactId, String version, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession repositorySystemSession) getArchetypeJarLoader(File archetypeFile) org.apache.maven.model.ModelgetArchetypePom(File jar) getArchetypeZipFile(File archetypeFile) getFileSetArchetypeDescriptor(File archetypeFile) getFilesetArchetypeResources(File archetypeFile) getOldArchetypeDescriptor(File archetypeFile) getPostGenerationScript(File archetypeFile) Get the archetype file's post-generation script content, read as UTF-8 content.booleanisFileSetArchetype(File archetypeFile) booleanisOldArchetype(File archetypeFile)
-
Method Details
-
getArchetypePom
org.apache.maven.model.Model getArchetypePom(File jar) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, UnknownArchetype, IOException - Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionUnknownArchetypeIOException
-
getArchetypeFile
File getArchetypeFile(String groupId, String artifactId, String version, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession repositorySystemSession) throws UnknownArchetype - Throws:
UnknownArchetype
-
getArchetypeJarLoader
- Throws:
UnknownArchetype
-
getArchetypeZipFile
- Throws:
UnknownArchetype
-
isFileSetArchetype
-
isOldArchetype
-
exists
-
getPostGenerationScript
Get the archetype file's post-generation script content, read as UTF-8 content.- Parameters:
archetypeFile- the archetype file- Returns:
- the archetype file's post-generation script content or
nullif there is no script in the archetype - Throws:
UnknownArchetype
-
getFileSetArchetypeDescriptor
- Throws:
UnknownArchetype
-
getFilesetArchetypeResources
- Throws:
UnknownArchetype
-
getOldArchetypeDescriptor
- Throws:
UnknownArchetype
-