-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Warning log "Unrecognized configuration key" on native build occurs for known properties #29660
Comments
Could you provide a simple reproducer? Thanks! |
I tried to create a reproducer, but there it works without a problem, so I currently have no clue when this happen and when not. |
After some testing I found out following: We are having a custom extension which has a configuration like this: @ConfigRoot(prefix = "yyy", name = "mqtt.connection", phase = ConfigPhase.RUN_TIME)
public class MqttConnectionConfiguration {
@ConfigItem(name = "url")
public String brokerUrl;
} The yyy.images.duration=2s The above warning is shown for all properties starting with So it seems that we can't have properties starting with the same name as the prefix in a dependent extension. This makes perfect sense for the default "quarkus"-prefix, but I'm not sure if this should also be checked for other prefixes? If this is works as designed, we can close the issue (probably add a doc somewhere?). |
Related to: #9791 (comment) |
@radcortez not sure if you have all the relevant information for this one but it's probably best if you ask for additional info yourself. |
I'll have a look. |
Describe the bug
When starting a native-build quarkus application we get some of the following warnings:
The mentioned properties are used in the application with
@ConfigProperty
or in an interface with@ConfigMapping
.The properties are also read correctly and applied as configured. So it is more about the warning-logging that is wrong.
I tried to create a reproducer, but there it works without a problem, so I currently have no clue when this happen and when not.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
Java 17.0.5
GraalVM version (if different from Java)
Mandrel 22.3.0
Quarkus version or git rev
2.14.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: