Skip to content

Python support is broken in a strange way... native-image works, but not the maven build #35266

Open

Description

Describe the bug

To build a working binary:

mvn clean package -DskipTests -Dquarkus.package.type=native-sources -Pnative
cd target/native-sources/
native-image --language:python --initialize-at-run-time=com.redhat.iteai.HelloResource  $(cat native-image.args)

To build a nonworking binary:

mvn clean package -DskipTests -Pnative

Expected behavior

Both behaviors should produce the same functional executable.

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

Linux jsightlerredhatlaptop2.redhatlaptop 6.3.8-100.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 15 01:51:54 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

Java(TM) SE Runtime Environment Oracle GraalVM 17.0.8+9.1 (build 17.0.8+9-LTS-jvmci-23.0-b14)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.2.3.Final

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

Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)

Additional information

Will provide a github repo link later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions