Class DefaultArchetypeSelectionQueryer

    • Field Detail

      • prompter

        @Requirement(hint="archetype")
        private org.codehaus.plexus.components.interactivity.Prompter prompter
    • Constructor Detail

      • DefaultArchetypeSelectionQueryer

        public DefaultArchetypeSelectionQueryer()
    • Method Detail

      • confirmSelection

        public boolean confirmSelection​(ArchetypeDefinition archetypeDefinition)
                                 throws org.codehaus.plexus.components.interactivity.PrompterException
        Specified by:
        confirmSelection in interface ArchetypeSelectionQueryer
        Throws:
        org.codehaus.plexus.components.interactivity.PrompterException
      • selectArchetype

        public Archetype selectArchetype​(java.util.Map<java.lang.String,​java.util.List<Archetype>> catalogs)
                                  throws org.codehaus.plexus.components.interactivity.PrompterException
        Specified by:
        selectArchetype in interface ArchetypeSelectionQueryer
        Throws:
        org.codehaus.plexus.components.interactivity.PrompterException
      • selectArchetype

        public Archetype selectArchetype​(java.util.Map<java.lang.String,​java.util.List<Archetype>> catalogs,
                                         ArchetypeDefinition defaultDefinition)
                                  throws org.codehaus.plexus.components.interactivity.PrompterException
        Description copied from interface: ArchetypeSelectionQueryer
        Select an archetype from the given map.
        Specified by:
        selectArchetype in interface ArchetypeSelectionQueryer
        Parameters:
        catalogs - the archetypes to choose from
        defaultDefinition - the default archetype, if present in the map
        Returns:
        the selected archetype
        Throws:
        org.codehaus.plexus.components.interactivity.PrompterException - if there is a problem in making a selection
      • selectVersion

        private Archetype selectVersion​(java.util.Map<java.lang.String,​java.util.List<Archetype>> catalogs,
                                        java.lang.String groupId,
                                        java.lang.String artifactId)
                                 throws org.codehaus.plexus.components.interactivity.PrompterException
        Throws:
        org.codehaus.plexus.components.interactivity.PrompterException
      • setPrompter

        public void setPrompter​(org.codehaus.plexus.components.interactivity.Prompter prompter)