Skip to content

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

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 of maven-mapping. It is now a package-private FileNameMapping, the same class as in the war plugin (apache/maven-war-plugin#670), whose 4.0.x line already inlines it.

One behaviour change: a blank classifier counts as no classifier and a classifier is trimmed, so @{dashClassifier?}@ in outputFileNameMapping no longer leaves a trailing dash or spaces (apache/maven-mapping#70, never released in maven-mapping), matching how the plugin already treats classifiers elsewhere.

#565 changes the error handling a few lines below the call this replaces in AbstractEarModule.getBundleFileName; whichever merges second rebases trivially.

The plugin needs only one method of maven-mapping, and the war plugin's
Maven 4 line already inlined it.
Matches how the rest of the plugin treats a whitespace-only classifier, and keeps FileNameMapping identical to the war plugin's copy.
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