org.apache.maven.plugin.dependency.analyze
Class AnalyzeOnlyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.dependency.analyze.AbstractAnalyzeMojo
          extended by org.apache.maven.plugin.dependency.analyze.AnalyzeOnlyMojo
All Implemented Interfaces:
ContextEnabled, Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

@Mojo(name="analyze-only",
      requiresDependencyResolution=TEST,
      defaultPhase=VERIFY,
      threadSafe=true)
public class AnalyzeOnlyMojo
extends AbstractAnalyzeMojo

Analyzes the dependencies of this project and determines which are: used and declared; used and undeclared; unused and declared. This goal is intended to be used in the build lifecycle, thus it assumes that the test-compile phase has been executed - use the dependency:analyze goal instead when running standalone.

By default, maven-dependency-analyzer is used to perform the analysis, with limitations due to the fact that it works at bytecode level, but any analyzer can be plugged in through analyzer parameter.

Since:
2.0
Version:
$Id: AnalyzeOnlyMojo.html 861760 2013-05-12 17:31:26Z hboutemy $
Author:
Mark Hobson
See Also:
AnalyzeMojo

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AnalyzeOnlyMojo()
           
 
Method Summary
 
Methods inherited from class org.apache.maven.plugin.dependency.analyze.AbstractAnalyzeMojo
contextualize, createProjectDependencyAnalyzer, execute, isSkip, setSkip
 
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 Detail

AnalyzeOnlyMojo

public AnalyzeOnlyMojo()


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.