Package org.codehaus.mojo.mrm.impl.maven
Class FileSystemArtifactStore
java.lang.Object
org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
org.codehaus.mojo.mrm.impl.maven.FileSystemArtifactStore
- All Implemented Interfaces:
ArtifactStore
An artifact store based off a
FileSystem.- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemArtifactStore(FileSystem backing) Creates a new artifact store hosted at the supplied root directory. -
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) longlonggetVersions(String groupId, String artifactId) voidset(Artifact artifact, InputStream content) Methods inherited from class org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
setArchetypeCatalog, setMetadata
-
Constructor Details
-
FileSystemArtifactStore
Creates a new artifact store hosted at the supplied root directory.- Parameters:
backing- the backing file system.- Since:
- 1.0
-
-
Method Details
-
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 IOException, MetadataNotFoundException - Throws:
IOExceptionMetadataNotFoundException
-
getMetadataLastModified
- Throws:
IOExceptionMetadataNotFoundException
-
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
-