Package org.apache.maven.plugin
Interface PluginArtifactsCache
- All Known Implementing Classes:
DefaultPluginArtifactsCache
public interface PluginArtifactsCache
Caches plugin artifacts. Warning: This is an internal utility interface that is only public for
technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without
prior notice.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
CacheRecordstatic interface
A cache key. -
Method Summary
Modifier and TypeMethodDescriptioncreateKey
(Plugin plugin, org.eclipse.aether.graph.DependencyFilter extensionFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) void
flush()
put
(PluginArtifactsCache.Key key, List<Artifact> pluginArtifacts) void
register
(MavenProject project, PluginArtifactsCache.Key cacheKey, PluginArtifactsCache.CacheRecord record) Registers the specified cache record for usage with the given project.
-
Method Details
-
createKey
PluginArtifactsCache.Key createKey(Plugin plugin, org.eclipse.aether.graph.DependencyFilter extensionFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) -
get
- Throws:
PluginResolutionException
-
put
-
put
-
flush
void flush() -
register
void register(MavenProject project, PluginArtifactsCache.Key cacheKey, PluginArtifactsCache.CacheRecord record) Registers the specified cache record for usage with the given project. Integrators can use the information collected from this method in combination with a custom cache implementation to dispose unused records from the cache.- Parameters:
project
- The project that employs the plugin realm, must not benull
.record
- The cache record being used for the project, must not benull
.
-