Package org.apache.maven.buildcache
Class RemoteCacheRepositoryNoOp
java.lang.Object
org.apache.maven.buildcache.RemoteCacheRepositoryNoOp
- All Implemented Interfaces:
CacheRepository,RemoteCacheRepository
@Named("noop")
public class RemoteCacheRepositoryNoOp
extends Object
implements RemoteCacheRepository
-
Field Summary
Fields inherited from interface org.apache.maven.buildcache.RemoteCacheRepository
BUILDINFO_XML, CACHE_REPORT_XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindBaselineBuild(org.apache.maven.project.MavenProject project) findBuild(CacheContext context) booleangetArtifactContent(CacheContext context, Artifact artifact, Path target) Download an artifact to the given location.getResourceUrl(CacheContext context, String filename) voidsaveArtifactFile(CacheResult cacheResult, org.apache.maven.artifact.Artifact artifact) voidsaveBuildInfo(CacheResult cacheResult, Build build) voidsaveCacheReport(String buildId, org.apache.maven.execution.MavenSession session, CacheReport cacheReport)
-
Constructor Details
-
RemoteCacheRepositoryNoOp
public RemoteCacheRepositoryNoOp()
-
-
Method Details
-
findBuild
- Specified by:
findBuildin interfaceCacheRepository- Throws:
IOException
-
saveBuildInfo
- Specified by:
saveBuildInfoin interfaceCacheRepository- Throws:
IOException
-
saveArtifactFile
public void saveArtifactFile(CacheResult cacheResult, org.apache.maven.artifact.Artifact artifact) throws IOException - Specified by:
saveArtifactFilein interfaceCacheRepository- Throws:
IOException
-
saveCacheReport
public void saveCacheReport(String buildId, org.apache.maven.execution.MavenSession session, CacheReport cacheReport) throws IOException - Specified by:
saveCacheReportin interfaceCacheRepository- Throws:
IOException
-
getArtifactContent
public boolean getArtifactContent(CacheContext context, Artifact artifact, Path target) throws IOException Description copied from interface:RemoteCacheRepositoryDownload an artifact to the given location. Returnstrueif success,falseif the artifact does not exists and throws anIOExceptionif a problem occurs.- Specified by:
getArtifactContentin interfaceRemoteCacheRepository- Throws:
IOException
-
getResourceUrl
- Specified by:
getResourceUrlin interfaceRemoteCacheRepository
-
findBaselineBuild
- Specified by:
findBaselineBuildin interfaceRemoteCacheRepository
-