Package org.apache.maven.buildcache
Interface LocalCacheRepository
-
- All Superinterfaces:
CacheRepository
- All Known Implementing Classes:
LocalCacheRepositoryImpl
public interface LocalCacheRepository extends CacheRepository
Local cache repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeforeSave(CacheContext environment)voidclearCache(CacheContext context)Optional<Build>findBestMatchingBuild(org.apache.maven.execution.MavenSession session, org.apache.maven.model.Dependency dependency)Optional<Build>findLocalBuild(CacheContext context)PathgetArtifactFile(CacheContext context, CacheSource source, Artifact artifact)-
Methods inherited from interface org.apache.maven.buildcache.CacheRepository
findBuild, saveArtifactFile, saveBuildInfo, saveCacheReport
-
-
-
-
Method Detail
-
beforeSave
void beforeSave(CacheContext environment) throws IOException
- Throws:
IOException
-
getArtifactFile
Path getArtifactFile(CacheContext context, CacheSource source, Artifact artifact) throws IOException
- Throws:
IOException
-
clearCache
void clearCache(CacheContext context)
-
findBestMatchingBuild
@Nonnull Optional<Build> findBestMatchingBuild(org.apache.maven.execution.MavenSession session, org.apache.maven.model.Dependency dependency) throws IOException
- Throws:
IOException
-
findLocalBuild
@Nonnull Optional<Build> findLocalBuild(CacheContext context) throws IOException
- Throws:
IOException
-
-