Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Arguments passed with -Dquarkus.args are ignored in dev mode #13451

Closed
aldettinger opened this issue Nov 24, 2020 · 3 comments · Fixed by #13554
Closed

Arguments passed with -Dquarkus.args are ignored in dev mode #13451

aldettinger opened this issue Nov 24, 2020 · 3 comments · Fixed by #13554
Assignees
Labels
area/devmode kind/bug Something isn't working
Milestone

Comments

@aldettinger
Copy link

aldettinger commented Nov 24, 2020

Describe the bug
When passing args as below:

mvn clean compile quarkus:dev -Dquarkus.args='first second'

The @QuarkusMain application does not receive the said arguments, while I would expect it should.

To Reproduce

git clone https://github.com/aldettinger/quarkus-13451-reproducer.git
cd quarkus-13451-reproducer
mvn clean compile quarkus:dev -Dquarkus.args='first second'

The maven outcome contains:

From Main
args.length:0

While I would expect the length to be 2.

Environment (please complete the following information):

  • Output of uname -a or ver:
Linux ag.remote.csb 3.10.0-1160.2.2.el7.x86_64 #1 SMP Sat Oct 17 05:06:47 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Output of java -version:
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)
  • Quarkus version or git rev:
    1.10.0.Final
  • Build tool (ie. output of mvnw --version or gradlew --version):
Maven home: /home/..../dev/maven/apache-maven-3.6.3
Java version: 11.0.8, vendor: AdoptOpenJDK, runtime: /home/.../.sdkman/candidates/java/11.0.8.hs-adpt
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-1160.2.2.el7.x86_64", arch: "amd64", family: "unix"
@jtama
Copy link
Contributor

jtama commented Nov 26, 2020

Fails with io.quarkus:quarkus-maven-plugin:1.10.0.Final

Works with Fails with io.quarkus:quarkus-maven-plugin:1.9.2.Final

I think this is due too 6dda6d1#diff-dbfecb8ead57f5ad197c876b824b224ea62a3711ba4a3d2c0bb07da027aa11d1L802

@gsmet
Copy link
Member

gsmet commented Nov 28, 2020

@aloubyansky could you have a look at this one? If @jtama-op is right, it would be a regression introduced by one of your changes.

Thanks!

@aloubyansky aloubyansky self-assigned this Nov 29, 2020
@aloubyansky
Copy link
Member

It is a regression. Here is a fix aloubyansky@e816389
Apparently we have no tests for this. I'll add some and open a PR. Gradle is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devmode kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants