Questions tagged [spring-native]

Spring Native supports compiling Spring applications to native images with GraalVM.

Spring Native supports compiling Spring applications to native images with GraalVM.

iIt s new experimental Spring project https://github.com/spring-projects-experimental/spring-native , that was announce in 2021 https://spring.io/blog/2021/03/11/announcing-spring-native-beta and pinned as #1 Dependency option on https://start.spring.io/

146 questions
3
votes
1 answer

How to workaround "The command line is too long" with GraalVM and Windows?

I'm trying to make a JHipster 7 app build with GraalVM on Windows. I've successfully got it to work with macOS and Linux. With Windows, I get an error about the command line being too long. [INFO] Executing:…
3
votes
1 answer

Spring native application build failing with buildbacks

I am trying to run very basic application as shared on here I was able to get the build running but it fails at the end with following error: [creator] Paketo BellSoft Liberica Buildpack 9.0.1 [creator] unable to find dependency …
Sukhmeet Sethi
  • 616
  • 5
  • 14
3
votes
1 answer

Setting up Spring Native Experimental (id 'org.springframework.experimental.aot' version '0.10.3' was not found in any of the following sources)

Hello ladies and gentlemen, so i was just trying to get a executable for my Spring application by using Spring Native. My build.gradle: plugins { id 'org.springframework.boot' version '2.5.4' id 'io.spring.dependency-management' version…
tdog
  • 27
  • 1
  • 5
3
votes
0 answers

Cannot compile spring app with graalVM when adding -agentlib options

I am currently stuck on a weird issue. I am doing the migration from a SpringBoot JVM app to a GraalVM native one. To acheive this, I need to override manually the reflectioc-config.json made by GraalVM. To do this, i want to get the autogenerate…
Nicolas B
  • 89
  • 5
2
votes
1 answer

Spring Boot 3 Native - java.lang.ClassNotFoundException: org.springframework.boot.SpringApplicationAotProcessor

I am trying to migrate my application to GraalVM AOT-compilation. When I run mvn clean native:compile -e I get the following Error: Error: Main class org.springframework.boot.SpringApplicationAotProcessor could not be found or loaded Reason:…
2
votes
1 answer

How do I enable https in Spring Boot 3 native image?

With Spring Boot 2 and its experimental native support I used to have @NativeHint(options = "--enable-https") at the top of my application's "main" class to tell it to enable https support in the GraalVM image. It seems in Spring Boot 3/Spring 6…
Eric
  • 362
  • 1
  • 4
  • 15
2
votes
0 answers

Hibernate enhance maven plugin not working with spring boot 3 and graalvm

I am using spring boot 3: org.springframework.boot spring-boot-starter-parent 3.0.2