public class MockArtifactStore extends BaseArtifactStore
| Modifier and Type | Field and Description |
|---|---|
static String[] |
POM_EXTENSIONS
The extensions to search for when looking for POMs to mock.
|
| Constructor and Description |
|---|
MockArtifactStore(File root)
Create a mock artifact store by scanning for POMs within the specified root.
|
MockArtifactStore(org.apache.maven.plugin.logging.Log log,
File root)
Create a mock artifact store by scanning for POMs within the specified root.
|
MockArtifactStore(org.apache.maven.plugin.logging.Log log,
File root,
boolean lazyArchiver)
Create a mock artifact store by scanning for POMs within the specified root.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
setArchetypeCatalog, setMetadatapublic static final String[] POM_EXTENSIONS
public MockArtifactStore(File root)
root - the root to search for POMs within.public MockArtifactStore(org.apache.maven.plugin.logging.Log log,
File root)
root - the root to search for POMs within.log - the Log to log to.public MockArtifactStore(org.apache.maven.plugin.logging.Log log,
File root,
boolean lazyArchiver)
root - the root to search for POMs within.log - the Log to log to.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 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 ArchetypeCatalogNotFoundException
getArchetypeCatalogLastModified in interface ArtifactStoregetArchetypeCatalogLastModified in class BaseArtifactStoreArchetypeCatalogNotFoundExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.