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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.archetype.catalog.ArchetypeCataloglonggetArtifactIds(String groupId) getArtifacts(String groupId, String artifactId, String version) getGroupIds(String parentGroupId) longgetLastModified(Artifact artifact) org.apache.maven.artifact.repository.metadata.MetadatagetMetadata(String path) longgetSha1Checksum(Artifact artifact) longgetVersions(String groupId, String artifactId) voidset(Artifact artifact, InputStream content) Methods inherited from class org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
setArchetypeCatalog, setMetadata
-
Constructor Details
-
ProxyArtifactStore
Creates a new instance.- Parameters:
factoryHelper- injectedFactoryHelperinstance
-
-
Method Details
-
getGroupIds
-
getArtifactIds
-
getVersions
-
getArtifacts
-
getLastModified
- Throws:
ArtifactNotFoundException
-
getSize
- Throws:
ArtifactNotFoundException
-
get
- Throws:
IOExceptionArtifactNotFoundException
-
getSha1Checksum
- Throws:
IOExceptionArtifactNotFoundException
-
set
- Specified by:
setin interfaceArtifactStore- Overrides:
setin 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:
getArchetypeCatalogin interfaceArtifactStore- Overrides:
getArchetypeCatalogin classBaseArtifactStore
-
getArchetypeCatalogLastModified
- Specified by:
getArchetypeCatalogLastModifiedin interfaceArtifactStore- Overrides:
getArchetypeCatalogLastModifiedin classBaseArtifactStore- Throws:
ArchetypeCatalogNotFoundException
-