Class DefaultArchetypeCreationQueryer

java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.ui.creation.DefaultArchetypeCreationQueryer
All Implemented Interfaces:
ArchetypeCreationQueryer, org.codehaus.plexus.logging.LogEnabled

@Named("default") @Singleton public class DefaultArchetypeCreationQueryer extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArchetypeCreationQueryer
  • Field Details

    • prompter

      @Inject private org.codehaus.plexus.components.interactivity.Prompter prompter
  • Constructor Details

    • DefaultArchetypeCreationQueryer

      public DefaultArchetypeCreationQueryer()
  • Method Details

    • getArchetypeArtifactId

      public String getArchetypeArtifactId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      getArchetypeArtifactId in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • getArchetypeGroupId

      public String getArchetypeGroupId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      getArchetypeGroupId in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • getArchetypeVersion

      public String getArchetypeVersion(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      getArchetypeVersion in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • getArtifactId

      public String getArtifactId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      getArtifactId in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • askAddAnotherProperty

      public boolean askAddAnotherProperty() throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      askAddAnotherProperty in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • askNewPropertyKey

      public String askNewPropertyKey() throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      askNewPropertyKey in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • askReplacementValue

      public String askReplacementValue(String propertyKey, String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      askReplacementValue in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • confirmConfiguration

      public boolean confirmConfiguration(ArchetypeConfiguration archetypeConfiguration) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      confirmConfiguration in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • getGroupId

      public String getGroupId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      getGroupId in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • getPackage

      public String getPackage(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      getPackage in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • getVersion

      public String getVersion(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Specified by:
      getVersion in interface ArchetypeCreationQueryer
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException
    • getValue

      private String getValue(String requiredProperty, String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException
      Throws:
      org.codehaus.plexus.components.interactivity.PrompterException