Describe the bug
Metadata was just added for org.hibernate.orm Hibernate Core 6.2.0.Final, but Spring Boot 3 apps are on 6.1.x. Because the only other metadata present is for 6.1.1.Final, it selects the latest version available. As a result, there are a lot of missing hints and Spring Boot 3 apps no longer work as-is.
Create and build a Spring Boot 3 native image application that uses Hibernate.
Expected behavior
NBT Maven plugin should not select metadata for a higher minor version when there is one available for the current minor version, even if it's for a lower version.
Describe the bug Metadata was just added for org.hibernate.orm Hibernate Core 6.2.0.Final, but Spring Boot 3 apps are on 6.1.x. Because the only other metadata present is for 6.1.1.Final, it selects the latest version available. As a result, there are a lot of missing hints and Spring Boot 3 apps no longer work as-is.
Also see https://github.com/oracle/graalvm-reachability-metadata/issues/273
To Reproduce
Create and build a Spring Boot 3 native image application that uses Hibernate.
Expected behavior NBT Maven plugin should not select metadata for a higher minor version when there is one available for the current minor version, even if it's for a lower version.