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 Details

    • DefaultPluginValidationManager

      public DefaultPluginValidationManager()
  • Method Details

    • afterSessionEnd

      public void afterSessionEnd(MavenSession session)
      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 class AbstractMavenLifecycleParticipant
    • 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 interface PluginValidationManager
    • 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 interface PluginValidationManager
    • 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 interface PluginValidationManager