animal-sniffer:check
Full name:
org.codehaus.mojo:animal-sniffer-maven-plugin:1.24:check
Description:
Checks the classes compiled by this module.
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
.
Required Parameters
Name | Type | Since | Description |
---|---|---|---|
<signature> |
Signature |
- |
Signature module to use. User Property: animal.sniffer.signature |
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<annotations> |
String[] |
- |
Annotation names to consider to ignore annotated methods, classes or fields.
By default 'org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement' and 'org.jvnet.animal_sniffer.IgnoreJRERequirement' are used. See also: org.codehaus.mojo.animal_sniffer.SignatureChecker.ANNOTATION_FQN, org.codehaus.mojo.animal_sniffer.SignatureChecker.PREVIOUS_ANNOTATION_FQN |
<checkTestClasses> |
boolean |
1.19 |
Should test classes be checked. Default: false User Property: animal.sniffer.checkTestClasses |
<excludeDependencies> |
String[] |
1.12 |
A list of artifact patterns to exclude. Patterns can include * as a wildcard match for any whole segment, valid patterns are:
|
<failOnError> |
boolean |
- |
Should signature check failures throw an error? Default: true User Property: animal.sniffer.failOnError |
<ignoreDependencies> |
boolean |
- |
Should dependencies be ignored. Default: true |
<ignores> |
String[] |
- |
Class names to ignore signatures for (wildcards accepted). |
<includeDependencies> |
String[] |
1.12 |
A list of artifact patterns to include. Patterns can include * as a wildcard match for any whole segment, valid patterns are:
|
<skip> |
boolean |
- |
Should signature checking be skipped? Default: false User Property: animal.sniffer.skip |
Parameter Details
<annotations>
Annotation names to consider to ignore annotated methods, classes or fields.
See also: org.codehaus.mojo.animal_sniffer.SignatureChecker.ANNOTATION_FQN, org.codehaus.mojo.animal_sniffer.SignatureChecker.PREVIOUS_ANNOTATION_FQN
By default 'org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement' and 'org.jvnet.animal_sniffer.IgnoreJRERequirement' are used.
See also: org.codehaus.mojo.animal_sniffer.SignatureChecker.ANNOTATION_FQN, org.codehaus.mojo.animal_sniffer.SignatureChecker.PREVIOUS_ANNOTATION_FQN
- Type:
java.lang.String[]
- Required:
No
<checkTestClasses>
Should test classes be checked.
- Type:
boolean
- Since:
1.19
- Required:
No
- User Property:
animal.sniffer.checkTestClasses
- Default:
false
<excludeDependencies>
A list of artifact patterns to exclude. Patterns can include
*
as a wildcard match for any whole segment, valid patterns are:
groupId:artifactId
groupId:artifactId:type
groupId:artifactId:type:version
groupId:artifactId:type:classifier
groupId:artifactId:type:classifier:version
- Type:
java.lang.String[]
- Since:
1.12
- Required:
No
<failOnError>
Should signature check failures throw an error?
- Type:
boolean
- Required:
No
- User Property:
animal.sniffer.failOnError
- Default:
true
<ignoreDependencies>
Should dependencies be ignored.
- Type:
boolean
- Required:
No
- Default:
true
<ignores>
Class names to ignore signatures for (wildcards accepted).
- Type:
java.lang.String[]
- Required:
No
<includeDependencies>
A list of artifact patterns to include. Patterns can include
*
as a wildcard match for any whole segment, valid patterns are:
groupId:artifactId
groupId:artifactId:type
groupId:artifactId:type:version
groupId:artifactId:type:classifier
groupId:artifactId:type:classifier:version
- Type:
java.lang.String[]
- Since:
1.12
- Required:
No
<signature>
Signature module to use.
- Type:
org.codehaus.mojo.animal_sniffer.maven.Signature
- Required:
Yes
- User Property:
animal.sniffer.signature
<skip>
Should signature checking be skipped?
- Type:
boolean
- Required:
No
- User Property:
animal.sniffer.skip
- Default:
false