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 behaviorquarkus.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:
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):
Output of uname -a or ver: Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64
Output of java -version: openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
GraalVM version (if different from Java): N/A
Quarkus version or git rev: 569fd1f41eb7a51ba7353931e729753fff305b26
Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
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: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:
-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):
uname -a
orver
: Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64java -version
: openjdk 11.0.2 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)mvnw --version
orgradlew --version
): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)Additional context N/A
https://github.com/quarkusio/quarkus/issues/11467
$upstream:11467$