public class ProxyArtifactStore extends BaseArtifactStore
ArtifactStore that serves content from a running Maven instance.| Constructor and Description |
|---|
ProxyArtifactStore(org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager repositoryMetadataManager,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteArtifactRepositories,
List<org.apache.maven.artifact.repository.ArtifactRepository> remotePluginRepositories,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
org.apache.maven.archetype.ArchetypeManager archetypeManager,
org.apache.maven.plugin.logging.Log log)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
get(Artifact artifact) |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getArchetypeCatalog() |
long |
getArchetypeCatalogLastModified() |
Set<String> |
getArtifactIds(String groupId) |
Set<Artifact> |
getArtifacts(String groupId,
String artifactId,
String version) |
Set<String> |
getGroupIds(String parentGroupId) |
long |
getLastModified(Artifact artifact) |
org.apache.maven.artifact.repository.metadata.Metadata |
getMetadata(String path) |
long |
getMetadataLastModified(String path) |
long |
getSize(Artifact artifact) |
Set<String> |
getVersions(String groupId,
String artifactId) |
void |
set(Artifact artifact,
InputStream content) |
setArchetypeCatalogpublic ProxyArtifactStore(org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager repositoryMetadataManager,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteArtifactRepositories,
List<org.apache.maven.artifact.repository.ArtifactRepository> remotePluginRepositories,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
org.apache.maven.archetype.ArchetypeManager archetypeManager,
org.apache.maven.plugin.logging.Log log)
repositoryMetadataManager - the RepositoryMetadataManager to use.remoteArtifactRepositories - the repsoitories to use.remotePluginRepositories - the plugin repositories to use.localRepository - the local repository to use.artifactFactory - the ArtifactFactory to use.artifactResolver - the ArtifactResolver to use.log - the Log to log to.public long getLastModified(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic long getSize(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic InputStream get(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic void set(Artifact artifact, InputStream content) throws IOException
set in interface ArtifactStoreset in class BaseArtifactStoreIOExceptionpublic org.apache.maven.artifact.repository.metadata.Metadata getMetadata(String path) throws IOException, MetadataNotFoundException
IOExceptionMetadataNotFoundExceptionpublic long getMetadataLastModified(String path) throws IOException, MetadataNotFoundException
IOExceptionMetadataNotFoundExceptionpublic org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalog in interface ArtifactStoregetArchetypeCatalog in class BaseArtifactStoreIOExceptionArchetypeCatalogNotFoundExceptionpublic long getArchetypeCatalogLastModified()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalogLastModified in interface ArtifactStoregetArchetypeCatalogLastModified in class BaseArtifactStoreIOExceptionArchetypeCatalogNotFoundExceptionCopyright © 2009-2014 Codehaus. All Rights Reserved.