jdeps:test-jdkinternals
Full name:
org.apache.maven.plugins:maven-jdeps-plugin:3.2.0:test-jdkinternals
Description:
Check if test classes depend on internal JDK classes
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
test. - The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
process-test-classes.
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<apiOnly> |
boolean |
- |
Restrict analysis to APIs i.e. dependences from the signature of public and protected members of public classes including field type, method parameter types, returned type, checked exception types etc Default: falseUser Property: jdeps.apionly |
<dependenciesToAnalyzeExcludes> |
List<String> |
- |
Subset of dependenciesToAnalyzeIncludes which should be not analyzed. Specify as groupId:artifactId, allowing ant-pattern. E.g.
<dependenciesToAnalyzeExcludes>
<exclude>org.foo.*:*</exclude>
<exclude>com.foo.bar:*</exclude>
<exclude>dot.foo.bar:utilities</exclude>
</dependenciesToAnalyzeExcludes>
|
<dependenciesToAnalyzeIncludes> |
List<String> |
- |
Additional dependencies which should be analyzed besides the classes. Specify as groupId:artifactId, allowing ant-pattern. E.g.
<dependenciesToAnalyzeIncludes>
<include>*:*</include>
<include>org.foo.*:*</include>
<include>com.foo.bar:*</include>
<include>dot.foo.bar:utilities</include>
</dependenciesToAnalyzeIncludes>
|
<dotOutput> |
File |
- |
Destination directory for DOT file output User Property: jdeps.dotOutput |
<failOnWarning> |
boolean |
- |
Indicates whether the build will continue even if there are jdeps warnings. Default: trueUser Property: jdeps.test.failOnWarning |
<include> |
String |
- |
Restrict analysis to classes matching pattern. This option filters the list of classes to be analyzed. It can be used together with -p and -e which apply pattern to the dependencesUser Property: jdeps.include |
<includeClasspath> |
boolean |
3.1.3 |
Whether only the sources need to be compatible or also every dependency on the classpath. Default: trueUser Property: jdeps.includeClasspath |
<jdkinternals> |
boolean |
3.2.0 |
Show only internal API usage. Default: falseUser Property: jdeps.jdkinternals |
<module> |
String |
JDK 1.9.0 |
Specifies the root module for analysis. User Property: jdeps.module |
<multiRelease> |
String |
3.1.1 |
Specifies the version when processing multi-release JAR files version should be an integer >=9 or base. User Property: jdeps.multiRelease |
<packages> |
List<String> |
3.1.1. |
Finds dependences matching the specified package name. |
<profile> |
boolean |
- |
Show profile or the file containing a package Default: falseUser Property: jdeps.profile |
<recursive> |
boolean |
- |
Recursively traverse all dependencies. The -R option implies -filter:none. If -p, -e, -f option is specified, only the matching dependences are analyzed.Default: falseUser Property: jdeps.recursive |
<verbose> |
String |
- |
User Property: jdeps.verbose |
Parameter Details
<apiOnly>
Restrict analysis to APIs i.e. dependences from the signature of public and protected members of public classes including field type, method parameter types, returned type, checked exception types etc
- Type:
boolean - Required:
No - User Property:
jdeps.apionly - Default:
false
<dependenciesToAnalyzeExcludes>
Subset of
dependenciesToAnalyzeIncludes which should be not analyzed. Specify as groupId:artifactId, allowing ant-pattern. E.g.
<dependenciesToAnalyzeExcludes>
<exclude>org.foo.*:*</exclude>
<exclude>com.foo.bar:*</exclude>
<exclude>dot.foo.bar:utilities</exclude>
</dependenciesToAnalyzeExcludes>
- Type:
java.util.List<java.lang.String> - Required:
No
<dependenciesToAnalyzeIncludes>
Additional dependencies which should be analyzed besides the classes. Specify as
groupId:artifactId, allowing ant-pattern. E.g.
<dependenciesToAnalyzeIncludes>
<include>*:*</include>
<include>org.foo.*:*</include>
<include>com.foo.bar:*</include>
<include>dot.foo.bar:utilities</include>
</dependenciesToAnalyzeIncludes>
- Type:
java.util.List<java.lang.String> - Required:
No
<dotOutput>
Destination directory for DOT file output
- Type:
java.io.File - Required:
No - User Property:
jdeps.dotOutput
<failOnWarning>
Indicates whether the build will continue even if there are jdeps warnings.
- Type:
boolean - Required:
No - User Property:
jdeps.test.failOnWarning - Default:
true
<include>
Restrict analysis to classes matching pattern. This option filters the list of classes to be analyzed. It can be used together with
-p and -e which apply pattern to the dependences- Type:
java.lang.String - Required:
No - User Property:
jdeps.include
<includeClasspath>
Whether only the sources need to be compatible or also every dependency on the classpath.
- Type:
boolean - Since:
3.1.3 - Required:
No - User Property:
jdeps.includeClasspath - Default:
true
<jdkinternals>
Show only internal API usage.
- Type:
boolean - Since:
3.2.0 - Required:
No - User Property:
jdeps.jdkinternals - Default:
false
<module>
Specifies the root module for analysis.
- Type:
java.lang.String - Since:
JDK 1.9.0 - Required:
No - User Property:
jdeps.module
<multiRelease>
Specifies the version when processing multi-release JAR files version should be an integer >=9 or base.
- Type:
java.lang.String - Since:
3.1.1 - Required:
No - User Property:
jdeps.multiRelease
<packages>
Finds dependences matching the specified package name.
- Type:
java.util.List<java.lang.String> - Since:
3.1.1. - Required:
No
<profile>
Show profile or the file containing a package
- Type:
boolean - Required:
No - User Property:
jdeps.profile - Default:
false
<recursive>
Recursively traverse all dependencies. The
-R option implies -filter:none. If -p, -e, -f option is specified, only the matching dependences are analyzed.- Type:
boolean - Required:
No - User Property:
jdeps.recursive - Default:
false
<verbose>
- package
- Print package-level dependencies excluding dependencies within the same archive
- class
- Print class-level dependencies excluding dependencies within the same archive
- <empty>
- Print all class level dependencies. Equivalent to -verbose:class -filter:none.
- Type:
java.lang.String - Required:
No - User Property:
jdeps.verbose


