quarkus: Failed to generate native image
Describe the bug Failed to execute goal io.quarkus:quarkus-maven-plugin:1.5.0.Final:native-image (default) on project quarkus: Failed to generate native image: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
Expected behavior generating a native executable native image successfully
Actual behavior failing to generate the native image and throws above exception
To Reproduce Steps to reproduce the behavior: 1. 2. 3.
Configuration
# Add your application.properties here, if applicable.
**Screenshots**
(If applicable, add screenshots to help explain your problem.)
**Environment (please complete the following information):**
1. Linux msuser1 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
2. java 11
3. graalvm: graalvm-ce-java11-20.1.0
4. Quarkus version: 1.5.0.Final
apache-maven-3.6.2
**Additional context**
(Add any other context about the problem here.)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
@jaikiran, thank you for the response.
My apologies for the incomplete reproducer here. I have told the team to close this report and asked them to open and separately report their very specific findings. It turns out that there are issues with keycloak and jasperreports libraries with the native image. We will report them separately with appropriate reproducer. Thanks again.
Hello @Mahaswami,
native-image
support provided by Graal VM is itself in early days and is a moving target and as such, no matter whether you use Quarkus or Spring, you are likely to need help sorting out issues as and when they show up.As for this specific issue, there was a reproducer app link which was posted earlier:
I couldn’t get it to build since it ran into dependency failures (that project pom uses some hardcoded local system path for some dependency):
The best way to try and resolve this issue is a have a simple reproducer app (that one I tried seemed to download the whole internet when building the
common
module and then ultimately failing with that error).