Full name:
org.apache.maven.plugins:maven-dependency-plugin:3.8.1:analyze
Description:
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 standalone, thus it always executes the test-compile
phase - use the dependency:analyze-only
goal instead when participating in the build lifecycle.
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.
Attributes:
test
.2.0-alpha-3
.test-compile
.<analyzer>
String
2.2
Specify the project dependency analyzer to use (plexus component role-hint). By default, maven-dependency-analyzer is used. To use this, you must declare a dependency for this plugin that contains the code for the analyzer. The analyzer must have a declared Plexus role name, and you specify the role name here.
default
analyzer
<excludedClasses>
Set<String>
3.7.0
List of class patterns excluded from analyze. Java regular expression pattern is applied to full class name.
mdep.analyze.excludedClasses
<failOnWarning>
boolean
-
Whether to fail the build if a dependency warning is found.
false
failOnWarning
<ignoreAllNonTestScoped>
boolean
3.3.1-SNAPSHOT
Ignore all dependencies that are used only in test but not test-scoped. Setting this flag has the same effect as adding all dependencies that have been flagged with the Non-test scoped test only dependencies found warning to the <ignoredNonTestScopedDependencies>
configuration.
false
ignoreAllNonTestScoped
<ignoreNonCompile>
boolean
-
Ignore Runtime/Provided/Test/System scopes for unused dependency analysis.
Non-test scoped
list will be not affected.
false
ignoreNonCompile
<ignoreUnusedRuntime>
boolean
3.2.0
Ignore Runtime scope for unused dependency analysis.
false
ignoreUnusedRuntime
<ignoredDependencies>
String[]
2.10
List of dependencies that will be ignored. Any dependency on this list will be excluded from the "declared but unused", the "used but undeclared", and the "non-test scoped" list. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
<ignoredNonTestScopedDependencies>
String[]
3.3.0
List of dependencies that will be ignored if they are in not test scope but are only used in test classes. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
<ignoredPackagings>
List<String>
3.2.1
List of project packaging that will be ignored.
pom, ear
pom,ear
<ignoredUnusedDeclaredDependencies>
String[]
2.10
List of dependencies that will be ignored if they are declared but unused. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
<ignoredUsedUndeclaredDependencies>
String[]
2.10
List of dependencies that will be ignored if they are used but undeclared. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
<outputXML>
boolean
2.0-alpha-5
Output the xml for the missing dependencies (used but not declared).
false
outputXML
<scriptableFlag>
String
2.0-alpha-5
Flag to use for scriptable output.
$$$%%%
scriptableFlag
<scriptableOutput>
boolean
2.0-alpha-5
Output scriptable values for the missing dependencies (used but not declared).
false
scriptableOutput
<skip>
boolean
2.7
Skip plugin execution completely.
false
mdep.analyze.skip
<usedDependencies>
String[]
2.6
Force dependencies as used, to override incomplete result caused by bytecode-level analysis. Dependency format is groupId:artifactId
. <verbose>
boolean
-
Output used dependencies.
false
verbose
Parameter Details <analyzer>
Specify the project dependency analyzer to use (plexus component role-hint). By default, maven-dependency-analyzer is used. To use this, you must declare a dependency for this plugin that contains the code for the analyzer. The analyzer must have a declared Plexus role name, and you specify the role name here.
java.lang.String
2.2
No
analyzer
default
List of class patterns excluded from analyze. Java regular expression pattern is applied to full class name.
java.util.Set<java.lang.String>
3.7.0
No
mdep.analyze.excludedClasses
Whether to fail the build if a dependency warning is found.
boolean
No
failOnWarning
false
Ignore all dependencies that are used only in test but not test-scoped. Setting this flag has the same effect as adding all dependencies that have been flagged with the Non-test scoped test only dependencies found warning to the <ignoredNonTestScopedDependencies>
configuration.
boolean
3.3.1-SNAPSHOT
No
ignoreAllNonTestScoped
false
Non-test scoped
list will be not affected.
boolean
No
ignoreNonCompile
false
Ignore Runtime scope for unused dependency analysis.
boolean
3.2.0
No
ignoreUnusedRuntime
false
List of dependencies that will be ignored. Any dependency on this list will be excluded from the "declared but unused", the "used but undeclared", and the "non-test scoped" list. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]
where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
java.lang.String[]
2.10
No
List of dependencies that will be ignored if they are in not test scope but are only used in test classes. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]
where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
java.lang.String[]
3.3.0
No
List of project packaging that will be ignored.
Default value is: pom, ear
java.util.List<java.lang.String>
3.2.1
No
pom,ear
List of dependencies that will be ignored if they are declared but unused. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]
where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
java.lang.String[]
2.10
No
List of dependencies that will be ignored if they are used but undeclared. The filter syntax is:
[groupId]:[artifactId]:[type]:[version]
where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. *
For example, org.apache.*
will match all artifacts whose group id starts with org.apache.
, and :::*-SNAPSHOT
will match all snapshot artifacts.
java.lang.String[]
2.10
No
Output the xml for the missing dependencies (used but not declared).
boolean
2.0-alpha-5
No
outputXML
false
Flag to use for scriptable output.
java.lang.String
2.0-alpha-5
No
scriptableFlag
$$$%%%
Output scriptable values for the missing dependencies (used but not declared).
boolean
2.0-alpha-5
No
scriptableOutput
false
Skip plugin execution completely.
boolean
2.7
No
mdep.analyze.skip
false
Force dependencies as used, to override incomplete result caused by bytecode-level analysis. Dependency format is groupId:artifactId
.
java.lang.String[]
2.6
No
Output used dependencies.
boolean
No
verbose
false
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4