Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Trailing comma in unpackTypes causes empty string element and confusing error

Open
#522 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@elharo is already working on this.

Since Jul 9, 2026.

  • #566 by @efegokdemir — open

Assessment

This issue has not been assessed yet.

Description

bug priority:minor

Description

In EarMojo.java:460, a trailing comma in the unpackTypes parameter produces an empty string element:

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:

Dominant language
Java
Stars
13
Forks
30
Avg merge
1d 3h
Merged PRs (30d)
11

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-ear-plugin

All issues in apache/maven-ear-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.