-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Description
The snippet below is my configuration at spring-boot-maven-plugin
. The purpose is to build an image using amazon-corretto instead bellsoft liberica
<image>
<builder>gcr.io/paketo-buildpacks/builder:base</builder>
<buildpacks>
<buildpack>gcr.io/paketo-buildpacks/amazon-corretto:latest</buildpack>
<buildpack>gcr.io/paketo-buildpacks/maven:latest</buildpack>
<buildpack>gcr.io/paketo-buildpacks/executable-jar:latest</buildpack>
<buildpack>gcr.io/paketo-buildpacks/spring-boot:latest</buildpack>
</buildpacks>
</image>
When running ./mvnw spring-boot:build-image
I got the error attached below
[INFO] --- spring-boot-maven-plugin:2.5.0-M2:build-image (default-cli) @ hello-demo ---
[INFO] Building image 'docker.io/library/hello-demo:0.0.1-SNAPSHOT'
[INFO]
[INFO] > Executing lifecycle version v0.10.2
[INFO] > Using build cache volume 'pack-cache-56b24530bea3.build'
[INFO]
[INFO] > Running creator
[INFO] [creator] ===> DETECTING
[INFO] [creator] ======== Results ========
[INFO] [creator] pass: paketo-buildpacks/[email protected]
[INFO] [creator] Resolving plan... (try #1)
[INFO] [creator] fail: paketo-buildpacks/[email protected] provides unused jdk
[INFO] [creator] Resolving plan... (try #2)
[INFO] [creator] fail: paketo-buildpacks/[email protected] provides unused jdk
[INFO] [creator] Resolving plan... (try #3)
[INFO] [creator] fail: paketo-buildpacks/[email protected] provides unused jre
[INFO] [creator] ======== Results ========
[INFO] [creator] fail: paketo-buildpacks/[email protected]
[INFO] [creator] ======== Results ========
[INFO] [creator] pass: paketo-buildpacks/[email protected]
[INFO] [creator] Resolving plan... (try #1)
[INFO] [creator] fail: paketo-buildpacks/[email protected] requires jre
[INFO] [creator] ======== Results ========
[INFO] [creator] pass: paketo-buildpacks/[email protected]
[INFO] [creator] Resolving plan... (try #1)
[INFO] [creator] fail: paketo-buildpacks/[email protected] requires jvm-application
[INFO] [creator] ERROR: No buildpack groups passed detection.
[INFO] [creator] ERROR: Please check that you are running against the correct path.
[INFO] [creator] ERROR: failed to detect: no buildpacks participating
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.918 s
[INFO] Finished at: 2021-02-19T16:33:39-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.0-M2:build-image (default-cli) on project hello-demo: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.5.0-M2:build-image failed: Builder lifecycle 'creator' failed with status code 100 -> [Help 1]
However, running pack build hello-demo --builder gcr.io/paketo-buildpacks/builder:base --buildpack paketo-buildpacks/amazon-corretto --buildpack paketo-buildpacks/maven --buildpack paketo-buildpacks/executable-jar --buildpack paketo-buildpacks/spring-boot
works.
spring-boot version: 2.5.0-M2
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug