org.apache.maven.plugin.dependency
Class AnalyzeDepMgt
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.dependency.AnalyzeDepMgt
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class AnalyzeDepMgt
- extends org.apache.maven.plugin.AbstractMojo
This mojo looks at the dependencies after final resolution and looks for
mismatches in your dependencyManagement section. In versions of maven prior
to 2.0.6, it was possible to inherit versions that didn't match your
dependencyManagement. See MNG-1577 for more info.
This mojo is also usefull for just detecting projects that override the dependencyManagement directly. Set ignoreDirect to false to detect these otherwise normal conditions.
- Since:
- 2.0-alpha-3
- Version:
- $Id: AnalyzeMojo.java 519377 2007-03-17 17:37:26Z brianf $
- Author:
- Brian Fox
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
AnalyzeDepMgt
public AnalyzeDepMgt()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
isFailBuild
public boolean isFailBuild()
- Returns:
- the failBuild
setFailBuild
public void setFailBuild(boolean theFailBuild)
- Parameters:
theFailBuild - the failBuild to set
getProject
public org.apache.maven.project.MavenProject getProject()
- Returns:
- the project
setProject
public void setProject(org.apache.maven.project.MavenProject theProject)
- Parameters:
theProject - the project to set
isIgnoreDirect
public boolean isIgnoreDirect()
- Returns:
- the ignoreDirect
setIgnoreDirect
public void setIgnoreDirect(boolean theIgnoreDirect)
- Parameters:
theIgnoreDirect - the ignoreDirect to set
Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.