Package org.apache.maven.plugin
Interface PluginValidationManager
- All Known Implementing Classes:
DefaultPluginValidationManager
public interface PluginValidationManager
Component collecting plugin validation issues and reporting them.
- Since:
- 3.9.2
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
reportPluginValidationIssue
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.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.
-
reportPluginValidationIssue
void reportPluginValidationIssue(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue) Reports plugin issues applicable to the plugin as a whole.This method will record extra information as well, like plugin occurrence or declaration location.
-
reportPluginMojoValidationIssue
void reportPluginMojoValidationIssue(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue) Reports plugin Mojo issues applicable to the Mojo itself.This method will record extra information as well, like plugin occurrence or declaration location.
-