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 Summary
FieldsModifier and TypeFieldDescriptionprivate org.codehaus.plexus.components.interactivity.Prompter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
askReplacementValue
(String propertyKey, String defaultValue) boolean
confirmConfiguration
(ArchetypeConfiguration archetypeConfiguration) getArchetypeArtifactId
(String defaultValue) getArchetypeGroupId
(String defaultValue) getArchetypeVersion
(String defaultValue) getArtifactId
(String defaultValue) getGroupId
(String defaultValue) getPackage
(String defaultValue) private String
getVersion
(String defaultValue) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
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 interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getArchetypeGroupId
public String getArchetypeGroupId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getArchetypeGroupId
in interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getArchetypeVersion
public String getArchetypeVersion(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getArchetypeVersion
in interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getArtifactId
public String getArtifactId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getArtifactId
in interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
askAddAnotherProperty
public boolean askAddAnotherProperty() throws org.codehaus.plexus.components.interactivity.PrompterException- Specified by:
askAddAnotherProperty
in interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
askNewPropertyKey
public String askNewPropertyKey() throws org.codehaus.plexus.components.interactivity.PrompterException- Specified by:
askNewPropertyKey
in interfaceArchetypeCreationQueryer
- 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 interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
confirmConfiguration
public boolean confirmConfiguration(ArchetypeConfiguration archetypeConfiguration) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
confirmConfiguration
in interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getGroupId
public String getGroupId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getGroupId
in interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getPackage
public String getPackage(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getPackage
in interfaceArchetypeCreationQueryer
- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getVersion
public String getVersion(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getVersion
in interfaceArchetypeCreationQueryer
- 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
-