Skip to content

Null classifier produces trailing dash in output filename #65

Closed

Description

@elharo

Description

When an artifact has a null classifier and the mapping expression uses @{classifier}@ (e.g. DEFAULT_FILE_NAME_MAPPING_CLASSIFIER), the output filename contains a trailing dash:

maven-test-lib-1.0-.jar
             ^ trailing dash

This happens because DashClassifierValueSource sets classifier to "" when the classifier is null (DashClassifierValueSource.java:69).

The @{dashClassifier?}@ variant handles this correctly (produces empty string with no dash), making the non-? variant inconsistent.

Expected behavior

Users of DEFAULT_FILE_NAME_MAPPING_CLASSIFIER likely expect that a null classifier either omits the classifier segment entirely, or at least does not leave a dangling dash.

Relevant code

DashClassifierValueSource.java:59-72

Activity

  1. added a commit that references this issue on Aug 20, 2026
    17e8a82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions