elharo opened a new issue, #65:
URL: https://github.com/apache/maven-mapping/issues/65
## 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`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]