79388089

Date: 2025-01-26 06:44:07
Score: 0.5
Natty:
Report link

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>
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Syed