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 Constructor Description DefaultPluginValidationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterSessionEnd(MavenSession session)Invoked after all projects were built.voidreportPluginMojoValidationIssue(MavenSession mavenSession, org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, java.lang.Class<?> mojoClass, java.lang.String issue)Reports plugin Mojo issues applicable to the Mojo itself.voidreportPluginValidationIssue(MavenSession mavenSession, org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, java.lang.String issue)Reports plugin issues applicable to the plugin as a whole.voidreportPluginValidationIssue(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.artifact.Artifact pluginArtifact, java.lang.String issue)Reports plugin issues applicable to the plugin as a whole.-
Methods inherited from class org.apache.maven.AbstractMavenLifecycleParticipant
afterProjectsRead, afterSessionStart
-
-
-
-
Method Detail
-
afterSessionEnd
public void afterSessionEnd(MavenSession session)
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, java.lang.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, org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, java.lang.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, org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, java.lang.Class<?> mojoClass, java.lang.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
-
-