public class DiskArtifactStore extends BaseArtifactStore
| Constructor and Description |
|---|
DiskArtifactStore(File root)
Creates a new artifact store hosted at the supplied root directory.
|
| Modifier and Type | Method and Description |
|---|---|
DiskArtifactStore |
canWrite(boolean canWrite) |
InputStream |
get(Artifact artifact) |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getArchetypeCatalog() |
long |
getArchetypeCatalogLastModified() |
Set<String> |
getArtifactIds(String groupId) |
Set<Artifact> |
getArtifacts(String groupId,
String artifactId,
String version) |
Set<String> |
getGroupIds(String parentGroupId) |
long |
getLastModified(Artifact artifact) |
org.apache.maven.artifact.repository.metadata.Metadata |
getMetadata(String path) |
long |
getMetadataLastModified(String path) |
long |
getSize(Artifact artifact) |
Set<String> |
getVersions(String groupId,
String artifactId) |
void |
set(Artifact artifact,
InputStream content) |
void |
setMetadata(String path,
org.apache.maven.artifact.repository.metadata.Metadata metadata) |
setArchetypeCatalogpublic DiskArtifactStore(File root)
root - the root directory of the artifact store.public DiskArtifactStore canWrite(boolean canWrite)
public long getLastModified(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic long getSize(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic InputStream get(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic void set(Artifact artifact, InputStream content) throws IOException
set in interface ArtifactStoreset in class BaseArtifactStoreIOExceptionpublic org.apache.maven.artifact.repository.metadata.Metadata getMetadata(String path) throws IOException, MetadataNotFoundException
IOExceptionMetadataNotFoundExceptionpublic void setMetadata(String path, org.apache.maven.artifact.repository.metadata.Metadata metadata) throws IOException
setMetadata in interface ArtifactStoresetMetadata in class BaseArtifactStoreIOExceptionpublic long getMetadataLastModified(String path) throws IOException, MetadataNotFoundException
IOExceptionMetadataNotFoundExceptionpublic org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalog in interface ArtifactStoregetArchetypeCatalog in class BaseArtifactStoreIOExceptionArchetypeCatalogNotFoundExceptionpublic long getArchetypeCatalogLastModified()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalogLastModified in interface ArtifactStoregetArchetypeCatalogLastModified in class BaseArtifactStoreIOExceptionArchetypeCatalogNotFoundExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.