Class DefaultPluginValidationManager

    • Constructor Detail

      • DefaultPluginValidationManager

        public DefaultPluginValidationManager()
    • Method Detail

      • 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,
                                                java.lang.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,
                                                org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                                java.lang.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,
                                                    org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                                    java.lang.Class<?> mojoClass,
                                                    java.lang.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