Class AnalyzeExclusionsMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.exclusion.AnalyzeExclusionsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="analyze-exclusions", requiresDependencyCollection=TEST, threadSafe=true) public class AnalyzeExclusionsMojo extends org.apache.maven.plugin.AbstractMojo
Analyzes the exclusions defined on dependencies in this project and reports if any of them are invalid.

Relevant use case is when an artifact in a later version has removed usage of a dependency, making the exclusion no longer valid.

Since:
3.7.0
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AnalyzeExclusionsMojo

      public AnalyzeExclusionsMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException