Interface PluginValidationManager

  • All Known Implementing Classes:
    DefaultPluginValidationManager

    public interface PluginValidationManager
    Component collecting plugin validation issues and reporting them.
    Since:
    3.9.2
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void reportPluginMojoValidationIssue​(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.
      void reportPluginValidationIssue​(MavenSession mavenSession, org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, java.lang.String issue)
      Reports plugin issues applicable to the plugin as a whole.
      void reportPluginValidationIssue​(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.
    • Method Detail

      • reportPluginValidationIssue

        void reportPluginValidationIssue​(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.

        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​(MavenSession mavenSession,
                                         org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                         java.lang.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​(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.

        This method will record extra information as well, like plugin occurrence or declaration location.