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
When setting the configuration option quarkus.http.host in the application configuration file src/main/resources/application.properties (or src/main/resources/application.yaml when using quarkus-config-yaml), the native executable, built with ./mvnw package -Dnative, does not pick up this configuration.
I can successfully set the configuration option quarkus.http.host (default value: 0.0.0.0) when starting the native executable, either by setting the environment variable QUARKUS_HTTP_HOST=127.0.0.1 or by passing -Dquarkus.http.host=127.0.0.1 to the native executable, though.
Note that setting the configuration option via the application configuration file works perfectly for JARs built with ./mvnw package.
Expected behavior
The generated native executable picks up the configuration value from the application configuration file.
Given the following src/main/resources/application.properties file:
Darwin C7MW2PKHK6 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Output of java -version
openjdk version "21.0.2" 2024-01-16 OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30) OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.9.4
Build tool (ie. output of mvnw --version or gradlew --version)
flippingbits
changed the title
Native profile ignores config option quarkus.http.host if set in the application configuration file
Native executable ignores config option quarkus.http.host if set in the application configuration file
Apr 26, 2024
Describe the bug
When setting the configuration option
quarkus.http.host
in the application configuration filesrc/main/resources/application.properties
(orsrc/main/resources/application.yaml
when usingquarkus-config-yaml
), the native executable, built with./mvnw package -Dnative
, does not pick up this configuration.I can successfully set the configuration option
quarkus.http.host
(default value:0.0.0.0
) when starting the native executable, either by setting the environment variableQUARKUS_HTTP_HOST=127.0.0.1
or by passing-Dquarkus.http.host=127.0.0.1
to the native executable, though.Note that setting the configuration option via the application configuration file works perfectly for JARs built with
./mvnw package
.Expected behavior
The generated native executable picks up the configuration value from the application configuration file.
Given the following
src/main/resources/application.properties
file:I would expect the following:
Actual behavior
The generated native executable does not pick up the configuration value from the application configuration file.
Given the following
src/main/resources/application.properties
file:I observe the following:
How to Reproduce?
Clone this repository and run the following commands:
Output of
uname -a
orver
Darwin C7MW2PKHK6 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Output of
java -version
openjdk version "21.0.2" 2024-01-16 OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30) OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.9.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Additional information
No response
The text was updated successfully, but these errors were encountered: