-
Notifications
You must be signed in to change notification settings - Fork 41.9k
Java version requirement check for native image is confusing if AOT didn't run #48963
Copy link
Copy link
Closed
Description
This is isn't the same problem at all, your project skips the Spring Boot Maven Plugin altogether while using our parent. Two things could have alerted you:
- Spring AOT didn't ran. It is mandatory for building native images with Spring.
- You had to specify a main class otherwise the native image build would fail immediately. I don't know if this is your first time building a native image but you shouldn't have to do that.
Here is the updated configuration that makes the build succeed:
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <id>repackage</id> <configuration> <skip>true</skip> <!-- Spring Boot fat jar breaks modularity --> </configuration> </execution> </executions> </plugin>That being said, the error message here isn't helpful. It looks like we're tripping between telling you the Java requirement wasn't allegedly met and AOT didn't run. I'll create a separate issue for that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug
Type
Fields
Give feedbackNo fields configured for issues without a type.