Package org.apache.maven.plugin.internal
Class DefaultPluginValidationManager
java.lang.Object
org.apache.maven.AbstractMavenLifecycleParticipant
org.apache.maven.plugin.internal.DefaultPluginValidationManager
- All Implemented Interfaces:
PluginValidationManager
@Singleton
@Named
public final class DefaultPluginValidationManager
extends AbstractMavenLifecycleParticipant
implements PluginValidationManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterSessionEnd
(MavenSession session) Invoked after all projects were built.void
reportPluginMojoValidationIssue
(MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue) Reports plugin Mojo issues applicable to the Mojo itself.void
reportPluginValidationIssue
(MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue) Reports plugin issues applicable to the plugin as a whole.void
reportPluginValidationIssue
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.artifact.Artifact pluginArtifact, String issue) Reports plugin issues applicable to the plugin as a whole.Methods inherited from class org.apache.maven.AbstractMavenLifecycleParticipant
afterProjectsRead, afterSessionStart
-
Constructor Details
-
DefaultPluginValidationManager
public DefaultPluginValidationManager()
-
-
Method Details
-
afterSessionEnd
Description copied from class:AbstractMavenLifecycleParticipant
Invoked after all projects were built. This callback is intended to allow extensions to perform cleanup of any allocated external resources after the build. It is invoked on best-effort basis and may be missed due to an Error or RuntimeException in Maven core code.- Overrides:
afterSessionEnd
in classAbstractMavenLifecycleParticipant
-
reportPluginValidationIssue
public void reportPluginValidationIssue(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.artifact.Artifact pluginArtifact, String issue) Description copied from interface:PluginValidationManager
Reports plugin issues applicable to the plugin as a whole.This method should be used in "early" phase of plugin execution, possibly even when plugin or mojo descriptor does not exist yet. In turn, this method will not record extra information like plugin occurrence or declaration location as those are not yet available.
- Specified by:
reportPluginValidationIssue
in interfacePluginValidationManager
-
reportPluginValidationIssue
public void reportPluginValidationIssue(MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue) Description copied from interface:PluginValidationManager
Reports plugin issues applicable to the plugin as a whole.This method will record extra information as well, like plugin occurrence or declaration location.
- Specified by:
reportPluginValidationIssue
in interfacePluginValidationManager
-
reportPluginMojoValidationIssue
public void reportPluginMojoValidationIssue(MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue) Description copied from interface:PluginValidationManager
Reports plugin Mojo issues applicable to the Mojo itself.This method will record extra information as well, like plugin occurrence or declaration location.
- Specified by:
reportPluginMojoValidationIssue
in interfacePluginValidationManager
-