Class DefaultArchetypeGenerationConfigurator
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator
- All Implemented Interfaces:
ArchetypeGenerationConfigurator
,org.codehaus.plexus.logging.LogEnabled
@Component(role=ArchetypeGenerationConfigurator.class,
hint="default")
public class DefaultArchetypeGenerationConfigurator
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ArchetypeGenerationConfigurator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArchetypeArtifactManager
private ArchetypeFactory
private ArchetypeGenerationQueryer
private org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
Determines whether the layout is legacy or not.(package private) OldArchetype
Fields inherited from interface org.apache.maven.archetype.ui.generation.ArchetypeGenerationConfigurator
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureArchetype
(ArchetypeGenerationRequest request, Boolean interactiveMode, Properties executionProperties) private org.apache.maven.artifact.repository.ArtifactRepository
createRepository
(String url, String repositoryId) private static String
expandEmbeddedTemplateExpressions
(String originalText, String textDescription, org.apache.velocity.context.Context context) private void
restoreCommandLineProperties
(ArchetypeConfiguration archetypeConfiguration, Properties executionProperties) void
setArchetypeArtifactManager
(ArchetypeArtifactManager archetypeArtifactManager) (package private) void
setArchetypeGenerationQueryer
(ArchetypeGenerationQueryer archetypeGenerationQueryer) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
oldArchetype
-
archetypeArtifactManager
-
archetypeFactory
-
archetypeGenerationQueryer
-
defaultArtifactRepositoryLayout
@Requirement private org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout defaultArtifactRepositoryLayoutDetermines whether the layout is legacy or not.
-
-
Constructor Details
-
DefaultArchetypeGenerationConfigurator
public DefaultArchetypeGenerationConfigurator()
-
-
Method Details
-
setArchetypeArtifactManager
-
configureArchetype
public void configureArchetype(ArchetypeGenerationRequest request, Boolean interactiveMode, Properties executionProperties) throws ArchetypeNotDefined, UnknownArchetype, ArchetypeNotConfigured, IOException, org.codehaus.plexus.components.interactivity.PrompterException, ArchetypeGenerationConfigurationFailure - Specified by:
configureArchetype
in interfaceArchetypeGenerationConfigurator
- Throws:
ArchetypeNotDefined
UnknownArchetype
ArchetypeNotConfigured
IOException
org.codehaus.plexus.components.interactivity.PrompterException
ArchetypeGenerationConfigurationFailure
-
expandEmbeddedTemplateExpressions
-
restoreCommandLineProperties
private void restoreCommandLineProperties(ArchetypeConfiguration archetypeConfiguration, Properties executionProperties) -
setArchetypeGenerationQueryer
-
createRepository
-