tentackle:plugin-versions
Full name:
org.tentackle:tentackle-maven-plugin:25.20.1.0:plugin-versions
Description:
Mojo to determine the versions of all maven plugins used in the current project and its modules.
It logs the versions in XML-format ready to use within the properties section of a pom file. The property names are of the form version.groupIdInCamelCase.artifactIdInCamelCase. Missing versions and the meta versions RELEASE and LATEST are resolved against the plugin repositories.
Example:
mvn tentackle:plugin-versions ... [INFO] [INFO] --- tentackle-maven-plugin:13.0-SNAPSHOT:plugin-versions (default-cli) @ admin-parent --- [INFO] <!-- plugins of project 'admin-parent' --> <version.orgApacheMavenPlugins.mavenCleanPlugin>3.1.0</version.orgApacheMavenPlugins.mavenCleanPlugin> <version.orgApacheMavenPlugins.mavenCompilerPlugin>3.8.1</version.orgApacheMavenPlugins.mavenCompilerPlugin> <version.orgApacheMavenPlugins.mavenDependencyPlugin>3.1.1</version.orgApacheMavenPlugins.mavenDependencyPlugin> <version.orgApacheMavenPlugins.mavenDeployPlugin>2.8.2</version.orgApacheMavenPlugins.mavenDeployPlugin> <version.orgApacheMavenPlugins.mavenEnforcerPlugin>3.0.0-M1</version.orgApacheMavenPlugins.mavenEnforcerPlugin> <version.orgApacheMavenPlugins.mavenInstallPlugin>2.5.2</version.orgApacheMavenPlugins.mavenInstallPlugin> <version.orgApacheMavenPlugins.mavenJarPlugin>3.1.2</version.orgApacheMavenPlugins.mavenJarPlugin> <version.orgApacheMavenPlugins.mavenJavadocPlugin>3.1.1</version.orgApacheMavenPlugins.mavenJavadocPlugin> <version.orgApacheMavenPlugins.mavenResourcesPlugin>3.1.0</version.orgApacheMavenPlugins.mavenResourcesPlugin> <version.orgApacheMavenPlugins.mavenSitePlugin>3.8.2</version.orgApacheMavenPlugins.mavenSitePlugin> ...Notice: the whole project must have been successfully built before invoking this goal.
Attributes:
- Requires a Maven project to be executed.
- Executes as an aggregator goal.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
validate.
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} |
<groupVersions> |
int |
- |
Controls creation of extra group version properties.
A group property is named version.groupIdInCamelCase, and the artifact properties of that group with the same version refer to it via ${...}. Only the version shared by most of the artifacts of a groupId is ever turned into a group property.
User Property: groupVersions |
<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 |
<outputFile> |
File |
- |
Optional output file.
If the filename ends with .properties, it will be created in properties file format instead of XML. The properties file format does not support group versions.User Property: outputFile |
<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>
The encoding to read and write files.
Applied JVM-wide, see
Applied JVM-wide, see
org.tentackle.maven.AbstractTentackleMojo.determineEncoding()
.- Type:
java.lang.String - Required:
No - Default:
${project.build.sourceEncoding}
<groupVersions>
Controls creation of extra group version properties.
A group property is named
A group property is named
version.groupIdInCamelCase, and the artifact properties of that group with the same version refer to it via ${...}. Only the version shared by most of the artifacts of a groupId is ever turned into a group property.
- 0: no group versions (default)
- >0: create a version property, if at least the given number of artifacts of the same groupId share the same version.
- <0: create a version property, if at least two artifacts of the same groupId share the same version and no more artifacts than the absolute value of the given number don't, i.e. -1 means that all but at most one artifact of the same groupId must refer to the same version.
- Type:
int - Required:
No - User Property:
groupVersions
<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>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>
The minimum logging
Any name or value accepted by
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
<outputFile>
Optional output file.
If the filename ends with
If the filename ends with
.properties, it will be created in properties file format instead of XML. The properties file format does not support group versions.- Type:
java.io.File - Required:
No - User Property:
outputFile
<skip>
Skips processing.
If not set, defaults to true if packaging is "pom" and the execution is recursive (see
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>
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
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