snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Command line arguments are not properly passed along when using quarkus.args #160

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 4 years ago

Describe the bug Specifying quarkus.args when launching the dev mode doesn't properly pass all the arguments. It only works properly if passing a single argument that doesn't contain any space i.e. -Dquarkus.args='--help'. However, if you attempt to pass more complex arguments such as: -Dquarkus.args='get abc -u foo --password foo-bar' this will fail as the arguments get split on white spaces, resulting in an error message such as:

Prepare phase of the quarkus-maven-plugin threw an error: Failed to parse command line arguments [, quarkus:dev, -Dquarkus.args=get, abc, -u, foo, --password, foo-bar]: InvocationTargetException: Failed to parse Maven command line arguments: Unrecognized option: -u

Expected behavior quarkus.args should be passed integrally as one arg to the maven command line parser but then should be split before Quarkus' main is run…

Actual behavior See description above.

To Reproduce Steps to reproduce the behavior:

  1. Try to run any quarkus app using the dev mode with -Dquarkus.args='get abc -u foo --password foo-bar' for example (really anything that contains more than one arg)

Configuration N/A

Screenshots N/A

Environment (please complete the following information):

Additional context N/A


https://github.com/quarkusio/quarkus/issues/11467


$upstream:11467$