Class ArtifactRepositoryStub
java.lang.Object
org.apache.maven.plugin.testing.stubs.StubArtifactRepository
org.apache.maven.plugins.deploy.stubs.ArtifactRepositoryStub
- All Implemented Interfaces:
org.apache.maven.artifact.repository.ArtifactRepository
- Direct Known Subclasses:
ArtifactRepositoryStub2
public class ArtifactRepositoryStub
extends org.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getKey()org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutorg.apache.maven.artifact.repository.ArtifactRepositoryPolicyorg.apache.maven.artifact.repository.ArtifactRepositoryPolicygetUrl()booleanbooleanbooleanpathOf(org.apache.maven.artifact.Artifact artifact) pathOfLocalRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata, org.apache.maven.artifact.repository.ArtifactRepository repository) pathOfRemoteRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata artifactMetadata) voidsetAppendToUrl(String dir) voidsetBlacklisted(boolean blackListed) voidsetBlocked(boolean b) Methods inherited from class org.apache.maven.plugin.testing.stubs.StubArtifactRepository
find, findVersions, getAuthentication, getMirroredRepositories, getProxy, isProjectAware, setAuthentication, setId, setLayout, setMirroredRepositories, setProxy, setReleaseUpdatePolicy, setSnapshotUpdatePolicy, setUrl
-
Constructor Details
-
ArtifactRepositoryStub
public ArtifactRepositoryStub() -
ArtifactRepositoryStub
-
-
Method Details
-
pathOf
- Specified by:
pathOfin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
pathOfin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
pathOfRemoteRepositoryMetadata
public String pathOfRemoteRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata artifactMetadata) - Specified by:
pathOfRemoteRepositoryMetadatain interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
pathOfRemoteRepositoryMetadatain classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
pathOfLocalRepositoryMetadata
public String pathOfLocalRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata, org.apache.maven.artifact.repository.ArtifactRepository repository) - Specified by:
pathOfLocalRepositoryMetadatain interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
pathOfLocalRepositoryMetadatain classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
getUrl
- Specified by:
getUrlin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getUrlin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
setAppendToUrl
-
getBasedir
- Specified by:
getBasedirin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getBasedirin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
getProtocol
- Specified by:
getProtocolin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getProtocolin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
getId
- Specified by:
getIdin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getIdin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
getSnapshots
public org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getSnapshots()- Specified by:
getSnapshotsin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getSnapshotsin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
getReleases
public org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getReleases()- Specified by:
getReleasesin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getReleasesin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
getLayout
public org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout getLayout()- Specified by:
getLayoutin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getLayoutin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
getKey
- Specified by:
getKeyin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
getKeyin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()- Specified by:
isUniqueVersionin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
isUniqueVersionin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blackListed) - Specified by:
setBlacklistedin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
setBlacklistedin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()- Specified by:
isBlacklistedin interfaceorg.apache.maven.artifact.repository.ArtifactRepository- Overrides:
isBlacklistedin classorg.apache.maven.plugin.testing.stubs.StubArtifactRepository
-
isBlocked
public boolean isBlocked() -
setBlocked
public void setBlocked(boolean b)
-