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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSessionEnd(MavenSession session) Invoked after all projects were built.voidreportPluginMojoValidationIssue(MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue) Reports plugin Mojo issues applicable to the Mojo itself.voidreportPluginValidationIssue(MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue) Reports plugin issues applicable to the plugin as a whole.voidreportPluginValidationIssue(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:AbstractMavenLifecycleParticipantInvoked 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:
afterSessionEndin classAbstractMavenLifecycleParticipant
-
reportPluginValidationIssue
public void reportPluginValidationIssue(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.artifact.Artifact pluginArtifact, String issue) Description copied from interface:PluginValidationManagerReports 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:
reportPluginValidationIssuein interfacePluginValidationManager
-
reportPluginValidationIssue
public void reportPluginValidationIssue(MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue) Description copied from interface:PluginValidationManagerReports 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:
reportPluginValidationIssuein interfacePluginValidationManager
-
reportPluginMojoValidationIssue
public void reportPluginMojoValidationIssue(MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue) Description copied from interface:PluginValidationManagerReports plugin Mojo issues applicable to the Mojo itself.This method will record extra information as well, like plugin occurrence or declaration location.
- Specified by:
reportPluginMojoValidationIssuein interfacePluginValidationManager
-