org.apache.maven.archetype.old
Interface OldArchetype

All Known Implementing Classes:
DefaultOldArchetype

public interface OldArchetype

Create a Maven project from an old archetype.

Version:
$Id: OldArchetype.java 1162541 2011-08-28 15:48:08Z hboutemy $
Author:
Jason van Zyl

Field Summary
static String ARCHETYPE_DESCRIPTOR
           
static String ARCHETYPE_OLD_DESCRIPTOR
           
static String ARCHETYPE_POM
           
static String ARCHETYPE_RESOURCES
           
static String ROLE
           
 
Method Summary
 void createArchetype(ArchetypeGenerationRequest request, org.apache.maven.artifact.repository.ArtifactRepository archetypeRepository)
          Download an archetype then create a project from it.
 void createArchetype(ArchetypeGenerationRequest request, File archetypeFile)
          Create a project from an archetype file.
 

Field Detail

ROLE

static final String ROLE

ARCHETYPE_DESCRIPTOR

static final String ARCHETYPE_DESCRIPTOR
See Also:
Constant Field Values

ARCHETYPE_OLD_DESCRIPTOR

static final String ARCHETYPE_OLD_DESCRIPTOR
See Also:
Constant Field Values

ARCHETYPE_RESOURCES

static final String ARCHETYPE_RESOURCES
See Also:
Constant Field Values

ARCHETYPE_POM

static final String ARCHETYPE_POM
See Also:
Constant Field Values
Method Detail

createArchetype

void createArchetype(ArchetypeGenerationRequest request,
                     org.apache.maven.artifact.repository.ArtifactRepository archetypeRepository)
                     throws UnknownArchetype,
                            ArchetypeNotFoundException,
                            ArchetypeDescriptorException,
                            ArchetypeTemplateProcessingException
Download an archetype then create a project from it.

Throws:
UnknownArchetype
ArchetypeNotFoundException
ArchetypeDescriptorException
ArchetypeTemplateProcessingException

createArchetype

void createArchetype(ArchetypeGenerationRequest request,
                     File archetypeFile)
                     throws ArchetypeDescriptorException,
                            ArchetypeTemplateProcessingException
Create a project from an archetype file.

Throws:
ArchetypeDescriptorException
ArchetypeTemplateProcessingException


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.