Package org.codehaus.mojo.mrm.maven
Class ProxyArtifactStore
java.lang.Object
org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
org.codehaus.mojo.mrm.maven.ProxyArtifactStore
- All Implemented Interfaces:
ArtifactStore
An
ArtifactStore
that serves content from a running Maven instance.-
Constructor Summary
ConstructorsConstructorDescriptionProxyArtifactStore
(FactoryHelper factoryHelper, org.apache.maven.execution.MavenSession session, org.apache.maven.plugin.logging.Log log) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.archetype.catalog.ArchetypeCatalog
long
getArtifactIds
(String groupId) getArtifacts
(String groupId, String artifactId, String version) getGroupIds
(String parentGroupId) long
getLastModified
(Artifact artifact) org.apache.maven.artifact.repository.metadata.Metadata
getMetadata
(String path) long
long
getVersions
(String groupId, String artifactId) void
set
(Artifact artifact, InputStream content) Methods inherited from class org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
setArchetypeCatalog, setMetadata
-
Constructor Details
-
ProxyArtifactStore
public ProxyArtifactStore(FactoryHelper factoryHelper, org.apache.maven.execution.MavenSession session, org.apache.maven.plugin.logging.Log log) Creates a new instance.- Parameters:
factoryHelper
- injectedFactoryHelper
instancesession
-MavenSession
instance from Maven executionlog
-Log
instance fromAbstractMojo
-
-
Method Details
-
getGroupIds
-
getArtifactIds
-
getVersions
-
getArtifacts
-
getLastModified
- Throws:
ArtifactNotFoundException
-
getSize
- Throws:
ArtifactNotFoundException
-
get
- Throws:
IOException
ArtifactNotFoundException
-
set
- Specified by:
set
in interfaceArtifactStore
- Overrides:
set
in classBaseArtifactStore
-
getMetadata
public org.apache.maven.artifact.repository.metadata.Metadata getMetadata(String path) throws MetadataNotFoundException - Throws:
MetadataNotFoundException
-
getMetadataLastModified
- Throws:
MetadataNotFoundException
-
getArchetypeCatalog
public org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog()- Specified by:
getArchetypeCatalog
in interfaceArtifactStore
- Overrides:
getArchetypeCatalog
in classBaseArtifactStore
-
getArchetypeCatalogLastModified
- Specified by:
getArchetypeCatalogLastModified
in interfaceArtifactStore
- Overrides:
getArchetypeCatalogLastModified
in classBaseArtifactStore
- Throws:
ArchetypeCatalogNotFoundException
-