-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
No config value of type [java.lang.String] exists for: quarkus.application.name #3008
Comments
I would like to work on this one - I think the fix will come from https://github.com/quarkusio/quarkus/blob/master/core/creator/src/main/java/io/quarkus/creator/phase/generateconfig/GenerateConfigPhase.java ( Line 161 onwards) Do we have a document to describe the core components in Qarkus and how they interact or I will have to understand through code. |
The The class This approach isn't a good long term solution; we should be using a general mechanism for dynamically supplying default values for build-time configuration properties between stages. |
@dmlloyd - Thank you for the explanation. |
@dmlloyd I forgot to mention that the error is when I try to inject the property Looking through The corresponding #1683 PR reads:
which is disappointing since it could be really nice to have those properties available. |
This is almost certainly due to the way these two properties are handled in this code. Normally we register a ConfigSource which contains all of the default values. This code takes a different path, and as a result, the default values are not visible at rum time. On Monday I can take a look. I think we'll also have to add a section to the doc about how to provide default values for build time config properties - and also make sure that ther is a way to do it of course. |
I think this comes down to the following steps:
That should be it; then it should be possible to reference these properties from any normal context. |
Also fix handling of quarkus.application.* Fixes quarkusio#3008, groundwork for quarkusio#3233
Also fix handling of quarkus.application.* Fixes quarkusio#3008, groundwork for quarkusio#3233
I have still the same issue with |
Describe the bug
I have generated a config example file with
./mvnw quarkus:generate-config
and check that it has the properties:Expected behavior
These example file reads that if not set, defaults to the name/version of the project.
The defaults of the project is assumed to be from Maven
${project.version}
and${project.artifactId}
.Actual behavior
Trying to inject the value
leads to:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: