Package org.codehaus.mojo.mrm.impl.maven
Class DiskArtifactStore
java.lang.Object
org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
org.codehaus.mojo.mrm.impl.maven.DiskArtifactStore
- All Implemented Interfaces:
ArtifactStore
An artifact store backed by a directory on the local disk.
- Since:
- 1.0
-
Constructor Summary
ConstructorDescriptionDiskArtifactStore
(File root) Creates a new artifact store hosted at the supplied root directory. -
Method Summary
Modifier and TypeMethodDescriptioncanWrite
(boolean canWrite) org.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) void
setMetadata
(String path, org.apache.maven.artifact.repository.metadata.Metadata metadata) Methods inherited from class org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
setArchetypeCatalog
-
Constructor Details
-
DiskArtifactStore
Creates a new artifact store hosted at the supplied root directory.- Parameters:
root
- the root directory of the artifact store.- Since:
- 1.0
-
-
Method Details
-
canWrite
-
getGroupIds
-
getArtifactIds
-
getVersions
-
getArtifacts
-
getLastModified
- Throws:
IOException
ArtifactNotFoundException
-
getSize
- Throws:
IOException
ArtifactNotFoundException
-
get
- Throws:
IOException
ArtifactNotFoundException
-
set
- Specified by:
set
in interfaceArtifactStore
- Overrides:
set
in classBaseArtifactStore
- Throws:
IOException
-
getMetadata
public org.apache.maven.artifact.repository.metadata.Metadata getMetadata(String path) throws MetadataNotFoundException - Throws:
MetadataNotFoundException
-
setMetadata
public void setMetadata(String path, org.apache.maven.artifact.repository.metadata.Metadata metadata) throws IOException - Specified by:
setMetadata
in interfaceArtifactStore
- Overrides:
setMetadata
in classBaseArtifactStore
- Throws:
IOException
-
getMetadataLastModified
- Throws:
MetadataNotFoundException
-
getArchetypeCatalog
public org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog() throws IOException, ArchetypeCatalogNotFoundException- Specified by:
getArchetypeCatalog
in interfaceArtifactStore
- Overrides:
getArchetypeCatalog
in classBaseArtifactStore
- Throws:
IOException
ArchetypeCatalogNotFoundException
-
getArchetypeCatalogLastModified
- Specified by:
getArchetypeCatalogLastModified
in interfaceArtifactStore
- Overrides:
getArchetypeCatalogLastModified
in classBaseArtifactStore
- Throws:
IOException
ArchetypeCatalogNotFoundException
-