Class AbstractAnalyzeMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.dependency.analyze.AbstractAnalyzeMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Direct Known Subclasses:
AnalyzeMojo
,AnalyzeOnlyMojo
public abstract class AbstractAnalyzeMojo extends org.apache.maven.plugin.AbstractMojo implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Analyzes the dependencies of this project and determines which are: used and declared; used and undeclared; unused and declared.- Since:
- 2.0-alpha-5
- Author:
- Mark Hobson
-
-
Constructor Summary
Constructors Constructor Description AbstractAnalyzeMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(org.codehaus.plexus.context.Context theContext)
protected org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzer
createProjectDependencyAnalyzer()
void
execute()
protected boolean
isSkip()
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
createProjectDependencyAnalyzer
protected org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzer createProjectDependencyAnalyzer() throws org.apache.maven.plugin.MojoExecutionException
- Returns:
ProjectDependencyAnalyzer
- Throws:
org.apache.maven.plugin.MojoExecutionException
- in case of an error.
-
contextualize
public void contextualize(org.codehaus.plexus.context.Context theContext) throws org.codehaus.plexus.context.ContextException
- Specified by:
contextualize
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
-
isSkip
protected final boolean isSkip()
- Returns:
skip
-
-