Class DefaultArchetypeCreationQueryer
java.lang.Object
org.apache.maven.archetype.ui.creation.DefaultArchetypeCreationQueryer
- All Implemented Interfaces:
ArchetypeCreationQueryer
@Named("default")
@Singleton
public class DefaultArchetypeCreationQueryer
extends Object
implements ArchetypeCreationQueryer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaskReplacementValue(String propertyKey, String defaultValue) booleanconfirmConfiguration(ArchetypeConfiguration archetypeConfiguration) getArchetypeArtifactId(String defaultValue) getArchetypeGroupId(String defaultValue) getArchetypeVersion(String defaultValue) getArtifactId(String defaultValue) getGroupId(String defaultValue) getPackage(String defaultValue) getVersion(String defaultValue)
-
Constructor Details
-
DefaultArchetypeCreationQueryer
public DefaultArchetypeCreationQueryer()
-
-
Method Details
-
getArchetypeArtifactId
public String getArchetypeArtifactId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getArchetypeArtifactIdin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getArchetypeGroupId
public String getArchetypeGroupId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getArchetypeGroupIdin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getArchetypeVersion
public String getArchetypeVersion(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getArchetypeVersionin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getArtifactId
public String getArtifactId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getArtifactIdin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
askAddAnotherProperty
public boolean askAddAnotherProperty() throws org.codehaus.plexus.components.interactivity.PrompterException- Specified by:
askAddAnotherPropertyin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
askNewPropertyKey
public String askNewPropertyKey() throws org.codehaus.plexus.components.interactivity.PrompterException- Specified by:
askNewPropertyKeyin 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:
askReplacementValuein interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
confirmConfiguration
public boolean confirmConfiguration(ArchetypeConfiguration archetypeConfiguration) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
confirmConfigurationin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getGroupId
public String getGroupId(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getGroupIdin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getPackage
public String getPackage(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getPackagein interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-
getVersion
public String getVersion(String defaultValue) throws org.codehaus.plexus.components.interactivity.PrompterException - Specified by:
getVersionin interfaceArchetypeCreationQueryer- Throws:
org.codehaus.plexus.components.interactivity.PrompterException
-