You have to specify the build packs as mentioned in below reference:
You can get more information about buildpacks from below reference in the Build pack section:
Here is how you can achieve it, by modifying pom.xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<builder>paketobuildpacks/builder:base</builder>
<buildpacks>
<buildpack>gcr.io/paketo-buildpacks/amazon-corretto</buildpack>
</buildpacks>
<env>
<BP_JVM_VERSION>17</BP_JVM_VERSION>
</env>
</image>
</configuration>
</plugin>
</plugins>
</build>