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