Skip to content

QUARKUS_PROFILE=dev and '-Dquarkus.profile=dev' not working for native image #37177

@mhubig

Description

@mhubig

Describe the bug

Setting QUARKUS_PROFILE=dev or appending the comand line option -Dquarkus.profile=dev to the native image has no effect. The application is always started with the prod profile:

 ERROR: Failed to start application (with profile [prod])

Expected behavior

Native build application should start with the profile provided by setting QUARKUS_PROFILE or appending the argument -Dquarkus.profile=<name>.

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

Linux 8e5df6b21197 6.4.16-linuxkit #1 SMP PREEMPT Fri Nov 10 14:49:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

java version "17.0.8" 2023-07-18 LTS Java(TM) SE Runtime Environment Oracle GraalVM 17.0.8+9.1 (build 17.0.8+9-LTS-jvmci-23.0-b14) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.8+9.1 (build 17.0.8+9-LTS-jvmci-23.0-b14, mixed mode, sharing)

Mandrel or GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.5.2

Build tool (ie. output of mvnw --version or gradlew --version)

Maven home: /Users/Markus.Hubig/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5 Java version: 21.0.1, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home Default locale: de_DE, platform encoding: UTF-8 OS name: "mac os x", version: "14.1", arch: "aarch64", family: "mac"

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions