You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/10/12 21:25:16 UTC

(maven-ear-plugin) branch master updated (58ab8ad -> c011a2b)

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git


    from 58ab8ad  Bump mavenVersion from 3.9.16 to 3.10.0 (#570)
     new 6bf3724  List the supported file name mapping tokens
     new c011a2b  Describe the classifier tokens as maven-mapping resolves them

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/site/markdown/examples/customize-file-name-mapping.md.vm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)


(maven-ear-plugin) 02/02: Describe the classifier tokens as maven-mapping resolves them

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit c011a2b13e1be7380a8bccd96dc160df90fbc98e
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Thu Oct 1 21:52:48 2026 +0200

    Describe the classifier tokens as maven-mapping resolves them
---
 src/site/markdown/examples/customize-file-name-mapping.md.vm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/site/markdown/examples/customize-file-name-mapping.md.vm b/src/site/markdown/examples/customize-file-name-mapping.md.vm
index 8ee151a..cae97d9 100644
--- a/src/site/markdown/examples/customize-file-name-mapping.md.vm
+++ b/src/site/markdown/examples/customize-file-name-mapping.md.vm
@@ -69,9 +69,9 @@ The following tokens are supported:
 - `@{artifactId}@` - expands to the artifact's ID
 - `@{version}@` - expands to artifact version, for `SNAPSHOT` artifacts can contain timestamp postfix instead of `SNAPSHOT`
 - `@{baseVersion}@` - expands to base artifact version, for `SNAPSHOT` artifacts we will always have `SNAPSHOT` postfix
-- `@{classifier}@` - expands to the artifact's classifier
+- `@{classifier}@` - expands to the artifact's classifier, or to nothing if it has none
 - `@{extension}@` - expands to the artifact's file extension
-- `@{dashClassifier}@` - expands to the classifier including the preceding dash
-- `@{dashClassifier?}@` - expands to a classifier including the preceding dash which is needed to separate it from other parts of the artifact, and to nothing if the artifact has no classifier
+- `@{dashClassifier}@` - expands to the classifier preceded by a dash, or to nothing if the artifact has no classifier
+- `@{dashClassifier?}@` - same as `@{dashClassifier}@`; the spelling supported since 2.1
 
-Any other property of Artifact and ArtifactHandler (for example `packaging`, `language`, `directory`, `addedToClasspath`, `includesDependencies`, `type`, `scope` or `file`) still resolves as a token, but is deprecated: it will not resolve in the Maven 4 line, so use only the tokens listed above.
+Any other property of Artifact and ArtifactHandler (for example `packaging`, `language`, `directory`, `addedToClasspath`, `includesDependencies`, `type`, `scope` or `file`) still resolves as a token, but is deprecated: these properties do not exist in the Maven 4 API, so they stop resolving once the plugin moves to it. Use only the tokens listed above.


(maven-ear-plugin) 01/02: List the supported file name mapping tokens

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit 6bf372405d3c0273f2d1cd730f73f34f666a68bc
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Thu Oct 1 07:25:25 2026 +0200

    List the supported file name mapping tokens
---
 src/site/markdown/examples/customize-file-name-mapping.md.vm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/site/markdown/examples/customize-file-name-mapping.md.vm b/src/site/markdown/examples/customize-file-name-mapping.md.vm
index 78b56c9..8ee151a 100644
--- a/src/site/markdown/examples/customize-file-name-mapping.md.vm
+++ b/src/site/markdown/examples/customize-file-name-mapping.md.vm
@@ -63,6 +63,15 @@ Based on the given things you can influence the resulting naming based on your w
   </build>
 ```
 
-- `@{dashClassifier?}@` - expands to a classifier including the preceding dash which is needed to separate it from other parts of the artifact
+The following tokens are supported:
+
+- `@{groupId}@` - expands to the artifact's group ID
+- `@{artifactId}@` - expands to the artifact's ID
 - `@{version}@` - expands to artifact version, for `SNAPSHOT` artifacts can contain timestamp postfix instead of `SNAPSHOT`
 - `@{baseVersion}@` - expands to base artifact version, for `SNAPSHOT` artifacts we will always have `SNAPSHOT` postfix
+- `@{classifier}@` - expands to the artifact's classifier
+- `@{extension}@` - expands to the artifact's file extension
+- `@{dashClassifier}@` - expands to the classifier including the preceding dash
+- `@{dashClassifier?}@` - expands to a classifier including the preceding dash which is needed to separate it from other parts of the artifact, and to nothing if the artifact has no classifier
+
+Any other property of Artifact and ArtifactHandler (for example `packaging`, `language`, `directory`, `addedToClasspath`, `includesDependencies`, `type`, `scope` or `file`) still resolves as a token, but is deprecated: it will not resolve in the Maven 4 line, so use only the tokens listed above.