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 unneeded.
 
Relevant use case is when an artifact in a later version has removed usage of a dependency, making the exclusion no longer necessary.
- Since:
- 3.7.0
- 
Field SummaryFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructorsConstructorDescriptionAnalyzeExclusionsMojo(org.apache.maven.project.MavenProject project, ResolverUtil resolverUtil, org.apache.maven.execution.MavenSession session) 
- 
Method SummaryMethods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Constructor Details- 
AnalyzeExclusionsMojo@Inject public AnalyzeExclusionsMojo(org.apache.maven.project.MavenProject project, ResolverUtil resolverUtil, org.apache.maven.execution.MavenSession session) 
 
- 
- 
Method Details- 
executepublic void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
 
-