tentackle-check:validations
Full name:
org.tentackle:tentackle-check-maven-plugin:21.16.1.0:validations
Description:
Verifies all annotation-based validations.
Scans for validator annotations (annotated with @Validation), creates the validators and their compound values for the annotation's value, message and condition. If the compound values are scripts, the scripts will be compiled. If a message-script is an i18n-script (see @MessageScriptConverter), the script will be evaluated for each configured locale.
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
compile
. - The goal is not marked as thread-safe and thus does not support parallel builds.
- Binds by default to the lifecycle phase:
process-classes
.
Required Parameters
Name | Type | Since | Description |
---|---|---|---|
<sourceDir> |
File |
- |
Directory holding the sources to be processed.
Defaults to all java sources of the current project. If this is not desired, filesets must be used. Default: ${project.build.sourceDirectory} User Property: tentackle.sourceDir |
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<charset> |
String |
- |
The encoding to read and write files. Default: ${project.build.sourceEncoding} |
<compilerArgs> |
List<String> |
- |
Arguments to be passed to the compiler.
(see maven-compiler-plugin) |
<compilerArgument> |
String |
- |
Sets the unformatted single argument string to be passed to the compiler.
(see maven-compiler-plugin) |
<encoding> |
String |
- |
Source file encode. Default: ${project.build.sourceEncoding} |
<filesets> |
List<FileSet> |
- |
The list of file sets.
If set the source directory is ignored. |
<jdkToolchain> |
Map<String,String> |
- |
Toolchain for invocation of external tools.
Explicitly specifies the "jdk" toolchain for this plugin only. Overrides the toolchain selected by the maven-toolchain-plugin, if any.
Example: <jdkToolchain> <version>14</version> </jdkToolchain>To deselect the toolchain configured by the maven-toolchain-plugin: <jdkToolchain></jdkToolchain> |
<locales> |
String |
- |
The locales to check the bundles against.
Defaults to the current locale. The fallback locale should come first. |
<minLogLevel> |
String |
- |
The minimum logging java.util.logging.Level to redirect java.util logging to the maven logger.Default: WARNING |
<scriptingLanguage> |
String |
- |
Sets the default scripting language to be used in validators. |
<showCompileOutput> |
boolean |
- |
Show compile output. Default: ${tentackle.showCompileOutput} |
<skip> |
Boolean |
- |
Skips processing.
Defaults to true if packaging is "pom". |
<skipTests> |
boolean |
- |
True whether to skip this test. Default: ${skipTests} |
<verbosity> |
String |
- |
The verbosity.
One of "default", "info" or "debug". Debug is also turned on (if not set explicitly) by Maven's global debug flag (see command line switch -X ).Default: ${tentackle.verbosity} |
Parameter Details
<charset>
The encoding to read and write files.
- Type:
java.lang.String
- Required:
No
- Default:
${project.build.sourceEncoding}
<compilerArgs>
Arguments to be passed to the compiler.
(see maven-compiler-plugin)
(see maven-compiler-plugin)
- Type:
java.util.List<java.lang.String>
- Required:
No
<compilerArgument>
Sets the unformatted single argument string to be passed to the compiler.
(see maven-compiler-plugin)
(see maven-compiler-plugin)
- Type:
java.lang.String
- Required:
No
<encoding>
Source file encode.
- Type:
java.lang.String
- Required:
No
- Default:
${project.build.sourceEncoding}
<filesets>
The list of file sets.
If set the source directory is ignored.
If set the source directory is ignored.
- Type:
java.util.List<org.apache.maven.shared.model.fileset.FileSet>
- Required:
No
<jdkToolchain>
Toolchain for invocation of external tools.
Explicitly specifies the
Explicitly specifies the
"jdk"
toolchain for this plugin only. Overrides the toolchain selected by the maven-toolchain-plugin, if any.
Example:
<jdkToolchain> <version>14</version> </jdkToolchain>To deselect the toolchain configured by the maven-toolchain-plugin:
<jdkToolchain></jdkToolchain>
- Type:
java.util.Map<java.lang.String, java.lang.String>
- Required:
No
<locales>
The locales to check the bundles against.
Defaults to the current locale.
The fallback locale should come first.
Defaults to the current locale.
The fallback locale should come first.
- Type:
java.lang.String
- Required:
No
<minLogLevel>
The minimum logging
java.util.logging.Level
to redirect java.util logging to the maven logger.- Type:
java.lang.String
- Required:
No
- Default:
WARNING
<scriptingLanguage>
Sets the default scripting language to be used in validators.
- Type:
java.lang.String
- Required:
No
<showCompileOutput>
Show compile output.
- Type:
boolean
- Required:
No
- Default:
${tentackle.showCompileOutput}
<skip>
Skips processing.
Defaults to true if packaging is "pom".
Defaults to true if packaging is "pom".
- Type:
java.lang.Boolean
- Required:
No
<skipTests>
True whether to skip this test.
- Type:
boolean
- Required:
No
- Default:
${skipTests}
<sourceDir>
Directory holding the sources to be processed.
Defaults to all java sources of the current project. If this is not desired, filesets must be used.
Defaults to all java sources of the current project. If this is not desired, filesets must be used.
- Type:
java.io.File
- Required:
Yes
- User Property:
tentackle.sourceDir
- Default:
${project.build.sourceDirectory}
<verbosity>
The verbosity.
One of "default", "info" or "debug". Debug is also turned on (if not set explicitly) by Maven's global debug flag (see command line switch
One of "default", "info" or "debug". Debug is also turned on (if not set explicitly) by Maven's global debug flag (see command line switch
-X
).- Type:
java.lang.String
- Required:
No
- Default:
${tentackle.verbosity}