Visitar URL original
Inline the file name mapping and drop maven-mapping by slachiewicz · Pull Request #670 · apache/maven-war-plugin · GitHub
Skip to content

Inline the file name mapping and drop maven-mapping - #670

Merged
slachiewicz merged 2 commits into
masterfrom
agent/inline-file-name-mapping
Oct 26, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
agent/inline-file-name-mapping

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

The plugin used one method and two constants of maven-mapping. They are now a package-private FileNameMapping, the same class as in the ear plugin (apache/maven-ear-plugin#578) and the shape the 4.0.x line already has.

The two default mappings become one, since @{dashClassifier?}@ already covers the no-classifier case, and each artifact's final name is computed once instead of twice.

One behaviour change: a blank classifier counts as no classifier and a classifier is trimmed, so @{dashClassifier?}@ in a custom outputFileNameMapping no longer leaves a trailing dash or spaces (apache/maven-mapping#70, never released in maven-mapping). The default mapping already behaved that way.

The plugin needs only one method of maven-mapping, and the Maven 4 line already inlined it.
@{dashClassifier?}@ already covers the no-classifier case, so the two default mappings collapse into one; the classifier is trimmed as the old whitespace check did.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant