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
ConstructorsConstructorDescriptionDiskArtifactStore(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.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) longlonggetVersions(String groupId, String artifactId) voidset(Artifact artifact, InputStream content) voidsetMetadata(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:
IOExceptionArtifactNotFoundException
-
getSize
- Throws:
IOExceptionArtifactNotFoundException
-
get
- Throws:
IOExceptionArtifactNotFoundException
-
set
- Specified by:
setin interfaceArtifactStore- Overrides:
setin 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:
setMetadatain interfaceArtifactStore- Overrides:
setMetadatain classBaseArtifactStore- Throws:
IOException
-
getMetadataLastModified
- Throws:
MetadataNotFoundException
-
getArchetypeCatalog
public org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog() throws IOException, ArchetypeCatalogNotFoundException- Specified by:
getArchetypeCatalogin interfaceArtifactStore- Overrides:
getArchetypeCatalogin classBaseArtifactStore- Throws:
IOExceptionArchetypeCatalogNotFoundException
-
getArchetypeCatalogLastModified
- Specified by:
getArchetypeCatalogLastModifiedin interfaceArtifactStore- Overrides:
getArchetypeCatalogLastModifiedin classBaseArtifactStore- Throws:
IOExceptionArchetypeCatalogNotFoundException
-