public abstract class BaseArtifactStore extends Object implements ArtifactStore
ArtifactStore.| Constructor and Description |
|---|
BaseArtifactStore() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getArchetypeCatalog() |
long |
getArchetypeCatalogLastModified() |
void |
set(Artifact artifact,
InputStream content)
Create/update the specified artifact.
|
void |
setArchetypeCatalog(InputStream content) |
void |
setMetadata(String path,
org.apache.maven.artifact.repository.metadata.Metadata metadata)
Create/update the specified metadata.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getArtifactIds, getArtifacts, getGroupIds, getLastModified, getMetadata, getMetadataLastModified, getSize, getVersionspublic void set(Artifact artifact, InputStream content) throws IOException
set in interface ArtifactStoreartifact - the artifact to create/update.content - the stream of contents (implementer is responsible for closing).IOException - if the content could not be read/written.public void setMetadata(String path, org.apache.maven.artifact.repository.metadata.Metadata metadata) throws IOException
ArtifactStoresetMetadata in interface ArtifactStorepath - of the metadata (should not include the maven-metadata.xml.metadata - the metadata, never null.IOException - if an I/O error occurs.public void setArchetypeCatalog(InputStream content) throws IOException
setArchetypeCatalog in interface ArtifactStorecontent - the contentIOException - if an I/O error occurs.public org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalog in interface ArtifactStoreIOException - if an I/O error occurs.ArchetypeCatalogNotFoundException - if the archetypeCatalog does not exist.public long getArchetypeCatalogLastModified()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalogLastModified in interface ArtifactStoreIOException - if an I/O error occurs.ArchetypeCatalogNotFoundException - if the archetypeCatalog does not exist.Copyright © 2009–2022 MojoHaus. All rights reserved.