Skip to content

[#28] improves error message when multiple files are found #39

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

EndzeitBegins
Copy link

@EndzeitBegins EndzeitBegins commented Jan 30, 2021

This change improves the message received, when multiple jar files match the given wildcard.
As denoted in #28, previously there only was an unhelpful message by maven, e.g.:

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/tmp/build/put). Please verify you invoked Maven from the correct directory. -> [Help 1]

With this change the user is warned clearly that multiple files match the given pattern, e.g.:

  [WARNING] multiple files found:
  ./build-output/your-artifact-1.0.0-rc.0-SNAPSHOT.jar
  ./build-output/your-artifact-1.0.0-rc.0-SNAPSHOT-javadoc.jar
  ./build-output/your-artifact-1.0.0-rc.0-SNAPSHOT-sources.jar
  [INFO] picking file ./build-output/your-artifact-1.0.0-rc.0-SNAPSHOT.jar

@patrickcrocker Would you be so kind and take a look at this, merge if everything looks good to you and publish a new version?

Thank you in advance!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant