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.ContextualizableAnalyzes 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 voidcontextualize(org.codehaus.plexus.context.Context theContext)protected org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzercreateProjectDependencyAnalyzer()voidexecute()protected booleanisSkip()
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.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:
contextualizein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable- Throws:
org.codehaus.plexus.context.ContextException
-
isSkip
protected final boolean isSkip()
- Returns:
skip
-
-