Interface ArchetypeArtifactManager

    • Method Detail

      • getArchetypePom

        org.apache.maven.model.Model getArchetypePom​(java.io.File jar)
                                              throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                                                     UnknownArchetype,
                                                     java.io.IOException
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
        UnknownArchetype
        java.io.IOException
      • getArchetypeFile

        java.io.File getArchetypeFile​(java.lang.String groupId,
                                      java.lang.String artifactId,
                                      java.lang.String version,
                                      java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories,
                                      org.eclipse.aether.RepositorySystemSession repositorySystemSession)
                               throws UnknownArchetype
        Throws:
        UnknownArchetype
      • isFileSetArchetype

        boolean isFileSetArchetype​(java.io.File archetypeFile)
      • isOldArchetype

        boolean isOldArchetype​(java.io.File archetypeFile)
      • exists

        boolean exists​(java.lang.String archetypeGroupId,
                       java.lang.String archetypeArtifactId,
                       java.lang.String archetypeVersion,
                       java.util.List<org.eclipse.aether.repository.RemoteRepository> repos,
                       org.eclipse.aether.RepositorySystemSession repositorySystemSession)
      • getPostGenerationScript

        java.lang.String getPostGenerationScript​(java.io.File archetypeFile)
                                          throws UnknownArchetype
        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 null if there is no script in the archetype
        Throws:
        UnknownArchetype
      • getFilesetArchetypeResources

        java.util.List<java.lang.String> getFilesetArchetypeResources​(java.io.File archetypeFile)
                                                               throws UnknownArchetype
        Throws:
        UnknownArchetype