Package org.apache.maven.plugin.internal
Class DefaultPluginValidationManager
java.lang.Object
org.apache.maven.eventspy.AbstractEventSpy
org.apache.maven.plugin.internal.DefaultPluginValidationManager
- All Implemented Interfaces:
EventSpy
,PluginValidationManager
@Singleton
@Named
public final class DefaultPluginValidationManager
extends AbstractEventSpy
implements PluginValidationManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy
EventSpy.Context
Nested classes/interfaces inherited from interface org.apache.maven.plugin.PluginValidationManager
PluginValidationManager.IssueLocality
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.maven.plugin.internal.DefaultPluginValidationManager.ValidationReportLevel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notifies the spy of some build event/operation.void
reportPluginMojoValidationIssue
(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue) Reports plugin Mojo issues applicable to the Mojo itself.void
reportPluginValidationIssue
(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue) Reports plugin issues applicable to the plugin as a whole.void
reportPluginValidationIssue
(PluginValidationManager.IssueLocality locality, 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.eventspy.AbstractEventSpy
close, init
-
Field Details
-
DEFAULT_VALIDATION_LEVEL
public static final org.apache.maven.plugin.internal.DefaultPluginValidationManager.ValidationReportLevel DEFAULT_VALIDATION_LEVEL
-
-
Constructor Details
-
DefaultPluginValidationManager
public DefaultPluginValidationManager()
-
-
Method Details
-
onEvent
Description copied from interface:EventSpy
Notifies the spy of some build event/operation.- Specified by:
onEvent
in interfaceEventSpy
- Overrides:
onEvent
in classAbstractEventSpy
- Parameters:
event
- The event, nevernull
.- See Also:
-
reportPluginValidationIssue
public void reportPluginValidationIssue(PluginValidationManager.IssueLocality locality, 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(PluginValidationManager.IssueLocality locality, 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(PluginValidationManager.IssueLocality locality, 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
-