@Mojo(name="check",
defaultPhase=VERIFY,
requiresProject=true,
inheritByDefault=false,
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public class DependenciesCheckMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
csvSummaryFile
The name of the summary file.
|
static String |
NAME
The mojo name.
|
protected org.apache.maven.project.MavenProject |
project
The Maven project.
|
protected List<String> |
scopes
The dependency scopes to include.
|
protected boolean |
skip
Flag used to suppress execution.
|
protected boolean |
transitive
Transitive dependencies or direct dependencies only.
|
protected List<String> |
types
The dependency types to include.
|
| Constructor and Description |
|---|
DependenciesCheckMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
public static final String NAME
@Parameter(property="project",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(property="csvSummaryFile",
defaultValue="dependencies-checksums.csv")
protected String csvSummaryFile
@Parameter protected List<String> scopes
Allowed values are compile, test, runtime, provided and system.
All scopes are included by default.
Use the following syntax:
<scopes> <scope>compile<scope> <scope>runtime<scope> </scopes>
@Parameter protected List<String> types
All types are included by default.
Use the following syntax:
<types> <type>jar<type> <type>zip<type> </types>
@Parameter(property="transitive",
defaultValue="false")
protected boolean transitive
@Parameter(property="checksum.skip",
defaultValue="false")
protected boolean skip
Copyright © 2010–2018. All rights reserved.