elharo opened a new issue, #522:
URL: https://github.com/apache/maven-ear-plugin/issues/522
## Description
In `EarMojo.java:460`, a trailing comma in the `unpackTypes` parameter
produces an empty string element:
```java
unpackTypesList = Arrays.asList(unpackTypes.split(","));
```
If the user configures `unpackTypes = "jar,war,"`, `split(",")` produces the
array `["jar", "war", ""]`. The empty string `""` will fail
`isStandardArtifactType()` and produce a confusing error message.
## Expected behavior
Filter out empty strings:
```java
unpackTypesList = Arrays.stream(unpackTypes.split(","))
.filter(s -> !s.isEmpty())
.collect(Collectors.toList());
```
--
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]