tentackle:properties
Full name:
org.tentackle:tentackle-maven-plugin:25.20.1.0:properties
Description:
Generates maven properties from other maven properties.
Example:
<propertyDescriptors>
<propertyDescriptor>
<input>${dbPasswd}</input>
<converter>@org.tentackle.common.Cryptor</converter>
<property>encryptedPasswd</property>
</propertyDescriptor>
</propertyDescriptors>
The converter is the FQCN of a class implementing Function<String,String> with a public no-args constructor. Because it must be in the classpath of the tentackle-maven-plugin, its artifact must be placed within the plugin's <dependencies>.
If the FQCN starts with an @, the converter is looked up via META-INF/services.
The generated properties are visible to all plugins executed later in the build of the same module, for example to resource filtering, but not to values of the pom that have already been interpolated.
Important: the converters must be stateless because one instance per converter is shared by all property descriptors of an execution!
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
compile. - The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
generate-resources.
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<charset> |
String |
- |
The encoding to read and write files.
Applied JVM-wide, see org.tentackle.maven.AbstractTentackleMojo.determineEncoding()
.Default: ${project.build.sourceEncoding} |
<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>25</version>
</jdkToolchain>
To deselect the toolchain configured by the maven-toolchain-plugin:
<jdkToolchain></jdkToolchain> |
<minLogLevel> |
String |
- |
The minimum logging java.util.logging.Level
to redirect java.util logging to the maven logger.
Any name or value accepted by java.util.logging.Level.parse(java.lang.String)
.Default: WARNING |
<propertyDescriptors> |
List<PropertyDescriptor> |
- |
The descriptors of the properties to generate. |
<skip> |
Boolean |
- |
Skips processing.
If not set, defaults to true if packaging is "pom" and the execution is recursive (see org.tentackle.maven.AbstractTentackleMojo.isSkippedByDefault()
). |
<verbosity> |
String |
- |
The verbosity.
One of "default", "info" or "debug". Other values are treated as "default". If not set, debug is turned on by Maven's global debug flag (see command line switch -X).Default: ${tentackle.verbosity} |
Parameter Details
<charset>
Applied JVM-wide, see
org.tentackle.maven.AbstractTentackleMojo.determineEncoding()
.- Type:
java.lang.String - Required:
No - Default:
${project.build.sourceEncoding}
<jdkToolchain>
Explicitly specifies the
"jdk" toolchain for this plugin only. Overrides the toolchain selected by the maven-toolchain-plugin, if any.
Example:
<jdkToolchain>
<version>25</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
<minLogLevel>
java.util.logging.Level
to redirect java.util logging to the maven logger.
Any name or value accepted by
java.util.logging.Level.parse(java.lang.String)
.- Type:
java.lang.String - Required:
No - Default:
WARNING
<propertyDescriptors>
- Type:
java.util.List<org.tentackle.maven.plugin.PropertyDescriptor> - Required:
No
<skip>
If not set, defaults to true if packaging is "pom" and the execution is recursive (see
org.tentackle.maven.AbstractTentackleMojo.isSkippedByDefault()
).- Type:
java.lang.Boolean - Required:
No
<verbosity>
One of "default", "info" or "debug". Other values are treated as "default".
If not set, debug is turned on by Maven's global debug flag (see command line switch
-X).- Type:
java.lang.String - Required:
No - Default:
${tentackle.verbosity}
Tentackle