Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

arm64 , jdk11 mvn build-image 'creator' failed with status code 1 #1609

Closed
fengx00 opened this issue May 11, 2022 · 2 comments
Closed

arm64 , jdk11 mvn build-image 'creator' failed with status code 1 #1609

fengx00 opened this issue May 11, 2022 · 2 comments
Labels
for: external-project For an external project and not something we can fix

Comments

@fengx00
Copy link

fengx00 commented May 11, 2022

[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] <<< spring-boot-maven-plugin:2.6.6:build-image (default-cli) < package @ native <<<
[INFO]
[INFO]
[INFO] --- spring-boot-maven-plugin:2.6.6:build-image (default-cli) @ native ---
[INFO] Building image 'docker.io/library/native:1.0.0'
[INFO]
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 100%
[INFO] > Pulled builder image 'paketobuildpacks/builder@sha256:e14dfdda67301e18d96808abca914df0b851e5384b17e3756e20c26894b94f17'
[INFO] > Pulling run image 'docker.io/paketobuildpacks/run:tiny-cnb' 100%
[INFO] > Pulled run image 'paketobuildpacks/run@sha256:dedfa8b82c24e4615b04bb042bdcbc99d52102cc48d4b8b29bef6660abcc61b4'
[INFO] > Executing lifecycle version v0.14.0
[INFO] > Using build cache volume 'pack-cache-bbfcb33d1cd8.build'
[INFO]
[INFO] > Running creator
[INFO] [creator] standard_init_linux.go:228: exec user process caused: exec format error
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:28 min
[INFO] Finished at: 2022-05-11T13:13:57+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.6.6:build-image (default-cli) on project native: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.6.6:build-image failed: Builder lifecycle 'creator' failed with status code 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

@fengx00
Copy link
Author

fengx00 commented May 11, 2022

POM.XML


 <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.6.6</version>
    <relativePath/> <!-- lookup parent from repository -->
  </parent>
  <groupId>com.example</groupId>
  <artifactId>native</artifactId>
  <version>1.0.0</version>
  <name>native</name>
  <properties>
    <java.version>11</java.version>
    <repackage.classifier/>
    <spring-native.version>0.11.4</spring-native.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
      <groupId>org.springframework.experimental</groupId>
      <artifactId>spring-native</artifactId>
      <version>${spring-native.version}</version>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
          <classifier>${repackage.classifier}</classifier>
          <image>
            <builder>paketobuildpacks/builder:tiny</builder>
            <env>
              <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
            </env>
          </image>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.springframework.experimental</groupId>
        <artifactId>spring-aot-maven-plugin</artifactId>
        <version>${spring-native.version}</version>
        <executions>
          <execution>
            <id>generate</id>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <repositories>
      <repository>
        <id>spring-releases</id>
        <name>Spring Releases</name>
        <url>https://repo.spring.io/release</url>
        <snapshots>
          <enabled>false</enabled>
        </snapshots>
      </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>spring-releases</id>
      <name>Spring Releases</name>
      <url>https://repo.spring.io/release</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>

</project>

env

Linux qrb5165 4.19.125-perf #1 SMP PREEMPT Sat May 7 06:25:33 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Apache Maven 3.8.4

jdk 11

help me help me !!!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label May 11, 2022
@fengx00 fengx00 changed the title arm64 mvn build-image 'creator' failed with status code 1 arm64 , jdk11 mvn build-image 'creator' failed with status code 1 May 11, 2022
@mhalbritter
Copy link
Contributor

mhalbritter commented Jun 9, 2022

Buildpacks don't support ARM64 yet. You can build your project outside a docker image on the commandline via mvn -Pnative.

@mhalbritter mhalbritter added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
for: external-project For an external project and not something we can fix
Development

No branches or pull requests

3 participants