org.apache.maven.archetype.common
Class DefaultArchetypeArtifactManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.common.DefaultArchetypeArtifactManager
- All Implemented Interfaces:
- ArchetypeArtifactManager, org.codehaus.plexus.logging.LogEnabled
public class DefaultArchetypeArtifactManager
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements ArchetypeArtifactManager
Method Summary |
boolean |
exists(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
File |
getArchetypeFile(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
ClassLoader |
getArchetypeJarLoader(File archetypeFile)
|
ClassLoader |
getArchetypeJarLoader(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
List |
getArchetypes(String groupId,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
ZipFile |
getArchetypeZipFile(File archetypeFile)
|
ZipFile |
getArchetypeZipFile(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
org.apache.maven.archetype.metadata.ArchetypeDescriptor |
getFileSetArchetypeDescriptor(File archetypeFile)
|
org.apache.maven.archetype.metadata.ArchetypeDescriptor |
getFileSetArchetypeDescriptor(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
List |
getFilesetArchetypeResources(File archetypeFile)
|
List |
getFilesetArchetypeResources(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
org.apache.maven.archetype.descriptor.ArchetypeDescriptor |
getOldArchetypeDescriptor(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
String |
getReleaseVersion(String groupId,
String artifactId,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
List |
getVersions(String groupId,
String artifactId,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
boolean |
isFileSetArchetype(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
boolean |
isOldArchetype(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultArchetypeArtifactManager
public DefaultArchetypeArtifactManager()
getArchetypeFile
public File getArchetypeFile(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getArchetypeFile
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getArchetypeJarLoader
public ClassLoader getArchetypeJarLoader(File archetypeFile)
throws UnknownArchetype
- Specified by:
getArchetypeJarLoader
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getArchetypeJarLoader
public ClassLoader getArchetypeJarLoader(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getArchetypeJarLoader
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getArchetypes
public List getArchetypes(String groupId,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownGroup
- Specified by:
getArchetypes
in interface ArchetypeArtifactManager
- Throws:
UnknownGroup
getArchetypeZipFile
public ZipFile getArchetypeZipFile(File archetypeFile)
throws UnknownArchetype
- Specified by:
getArchetypeZipFile
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getArchetypeZipFile
public ZipFile getArchetypeZipFile(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getArchetypeZipFile
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
exists
public boolean exists(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
- Specified by:
exists
in interface ArchetypeArtifactManager
isFileSetArchetype
public boolean isFileSetArchetype(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
- Specified by:
isFileSetArchetype
in interface ArchetypeArtifactManager
getFileSetArchetypeDescriptor
public org.apache.maven.archetype.metadata.ArchetypeDescriptor getFileSetArchetypeDescriptor(File archetypeFile)
throws UnknownArchetype
- Specified by:
getFileSetArchetypeDescriptor
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getFileSetArchetypeDescriptor
public org.apache.maven.archetype.metadata.ArchetypeDescriptor getFileSetArchetypeDescriptor(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getFileSetArchetypeDescriptor
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getFilesetArchetypeResources
public List getFilesetArchetypeResources(File archetypeFile)
throws UnknownArchetype
- Specified by:
getFilesetArchetypeResources
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getFilesetArchetypeResources
public List getFilesetArchetypeResources(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getFilesetArchetypeResources
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
isOldArchetype
public boolean isOldArchetype(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
- Specified by:
isOldArchetype
in interface ArchetypeArtifactManager
getOldArchetypeDescriptor
public org.apache.maven.archetype.descriptor.ArchetypeDescriptor getOldArchetypeDescriptor(String groupId,
String artifactId,
String version,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getOldArchetypeDescriptor
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getReleaseVersion
public String getReleaseVersion(String groupId,
String artifactId,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getReleaseVersion
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
getVersions
public List getVersions(String groupId,
String artifactId,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List repositories)
throws UnknownArchetype
- Specified by:
getVersions
in interface ArchetypeArtifactManager
- Throws:
UnknownArchetype
Copyright © 2007-2010 Apache Software Foundation. All Rights Reserved.