Процессор: четырехъядерный процессор Intel Core i5 с тактовой частотой 1,4 ГГц
Версия jvm: java 17.0.2 18 января 2022 г. LTS
Версия Springboot: 2.4.3
Версия Maven: Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Версия Docker:
Клиент:
Интеграция с облаком: v1.0.35-desktop+001
Версия: 24.0.5
Версия API: 1.43
Версия Go: go1.20.6
Коммит Git: ced0996
Встроено : Пт, 21 июля, 20:32:30, 2023 г.
ОС/Arch: darwin/amd64
Контекст: Desktop-Linux
Сервер: Docker Desktop 4.22.1 (118664) )
Движок:
Версия: 24.0.5
Версия API: 1.43 (минимальная версия 1.12)
Версия Go: go1.20.6
Git commit: a61e2b4
Создано: пятница, 21 июля, 20:35:45, 2023 г.
ОС/Arch: linux/amd64
Экспериментальная версия: false
containerd:
Версия: 1.6.21
GitCommit : 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Версия: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Версия: 0.19.0
GitCommit: de40ad0
Когда я запускаю следующую команду в своем проекте maven: mvn -e Spring-boot:build-image, происходит следующий сбой:
Код: Выделить всё
[INFO] > Running creator
[INFO] [creator] Warning: Platform requested deprecated API '0.4'
[INFO] [creator] ===> DETECTING
[INFO] [creator] ERROR: failed to initialize detector: toml: line 1: files cannot contain NULL bytes; probably using UTF-16; TOML files must be UTF-8
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.387 s
[INFO] Finished at: 2023-09-09T09:43:41+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.6.4:build-image (default-cli) on project advertising: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.6.4:build-image failed: Builder lifecycle 'creator' failed with status code 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.6.4:build-image (default-cli) on project advertising: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.6.4:build-image failed: Builder lifecycle 'creator' failed with status code 1
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.6.4:build-image failed: Builder lifecycle 'creator' failed with status code 1
Чего я хочу: я просто хочу нормально использовать плагин buildpacks.
Подробнее здесь: https://stackoverflow.com/questions/770 ... r-failed-w