You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quarkus tries to resolve ENVs for profiles which are not active. This breaks other profiles. This only happens with the built jar. It works fine with the quarkus:dev plugin.
Example:
Empty Quarkus project with %prod.quarkus.http.port=${HTTP_PORT} as the only configuration in application.properties breaks every other profile when running from jar if HTTP_PORT is not exported.
Expected behavior
If HTTP_PORT is not set application should start fine with any profile but prod. HTTP_PORT is only required in prod.
Actual behavior
Quarkus tries to resolve HTTP_PORT regardless of the active profile and fails to start.
QUARKUS_PROFILE=foo java -jar target/quarkus-app/quarkus-run.jar
One or more configuration errors have prevented the application from starting. The errors are:
- SRCFG00011: Could not expand value HTTP_PORT in property quarkus.http.port
Describe the bug
Quarkus tries to resolve ENVs for profiles which are not active. This breaks other profiles. This only happens with the built jar. It works fine with the
quarkus:dev
plugin.Example:
Empty Quarkus project with
%prod.quarkus.http.port=${HTTP_PORT}
as the only configuration inapplication.properties
breaks every other profile when running from jar ifHTTP_PORT
is not exported.Expected behavior
If
HTTP_PORT
is not set application should start fine with any profile butprod
.HTTP_PORT
is only required inprod
.Actual behavior
Quarkus tries to resolve
HTTP_PORT
regardless of the active profile and fails to start.To Reproduce
https://github.com/atamanroman/quarkus-profile-dev-prod-repro
Steps to reproduce here:
https://github.com/atamanroman/quarkus-profile-dev-prod-repro/blob/main/README.md
Additional context
This issue was opened after discussion in this zulip thread.
The text was updated successfully, but these errors were encountered: