Package org.apache.maven.plugin
-
Interface Summary Interface Description BuildPluginManager ContextEnabled Interface to allowMojos
to communicate with each othersMojos
, other than project's source root and project's attachment.
The plugin manager would pull the context out of the plugin container context, and populate it into the Mojo.ExtensionRealmCache Caches extension class realms.ExtensionRealmCache.Key A cache key.LegacySupport Helps to provide backward-compatibility with plugins that use legacy components.MavenPluginManager Provides basic services to manage Maven plugins and their mojos.Mojo This interface forms the contract required forMojos
to interact with theMaven
infrastructure.
It features anexecute()
method, which triggers the Mojo's build-process behavior, and can throw a MojoExecutionException or MojoFailureException if error conditions occur.
Also included is thesetLog(...)
method, which simply allows Maven to inject a logging mechanism which will allow the Mojo to communicate to the outside world through standard Maven channels.MojoExecutionRunner Provides context for mojo execution.MojosExecutionStrategy Interface allows overriding default mojo execution strategy For example it is possible wrap some mojo execution to decorate default functionality or skip some executionsPluginArtifactsCache Caches plugin artifacts.PluginArtifactsCache.Key A cache key.PluginDescriptorCache Caches raw plugin descriptors.PluginDescriptorCache.Key A cache key.PluginDescriptorCache.PluginDescriptorSupplier PluginManager Deprecated. PluginRealmCache Caches plugin class realms.PluginRealmCache.Key A cache key.PluginRealmCache.PluginRealmSupplier PluginValidationManager Component collecting plugin validation issues and reporting them. -
Class Summary Class Description AbstractMojo Abstract class to provide most of the infrastructure required to implement aMojo
except for the execute method.
The implementation should have aMojo
annotation with the name of the goal:DebugConfigurationListener Deprecated. DefaultBuildPluginManager DefaultBuildPluginManagerDefaultExtensionRealmCache Default extension realm cache implementation.DefaultExtensionRealmCache.CacheKey CacheKeyDefaultMojosExecutionStrategy Default mojo execution strategy.DefaultPluginArtifactsCache DefaultPluginArtifactsCache.CacheKey CacheKeyDefaultPluginDescriptorCache Caches raw plugin descriptors.DefaultPluginRealmCache Default PluginCache implementation.DefaultPluginRealmCache.CacheKey CacheKeyExtensionRealmCache.CacheRecord CacheRecordMavenPluginValidator MavenPluginValidatorMojoExecution MojoExecutionPluginArtifactsCache.CacheRecord CacheRecordPluginParameterExpressionEvaluator Evaluator for plugin parameters expressions.PluginRealmCache.CacheRecord CacheRecord -
Enum Summary Enum Description MojoExecution.Source Describes the source of an execution.PluginValidationManager.IssueLocality -
Exception Summary Exception Description AbstractMojoExecutionException Base exception.CycleDetectedInPluginGraphException Exception occurring trying to resolve a plugin.InvalidPluginDescriptorException InvalidPluginDescriptorExceptionInvalidPluginException Thrown when a plugin is not internally consistent.MojoExecutionException An exception occurring during the execution of a plugin.
Throwing this exception causes a "BUILD ERROR" message to be displayed.MojoFailureException An exception occurring during the execution of a plugin (such as a compilation failure).
Throwing this exception causes a "BUILD FAILURE" message to be displayed.MojoNotFoundException MojoNotFoundExceptionPluginConfigurationException PluginContainerException Exception which occurs to indicate that the plugin cannot be initialized due to some deeper problem with Plexus.PluginDescriptorParsingException PluginExecutionException Exception in the plugin manager.PluginIncompatibleException Signals a plugin which is not compatible with the current Maven runtime.PluginLoaderException Signifies a failure to load a plugin.PluginManagerException Exception in the plugin manager.PluginNotFoundException Exception occurring trying to resolve a plugin.PluginParameterException PluginParameterExceptionPluginResolutionException Exception occurring trying to resolve a plugin.