How to slove the error: org.apache.maven.plugin.MojoExecutionException: Could not build image

509 views Asked by At

local env:

  • JDK:azul-17 17.0.4
  • CPU:M1
  • system:12.6 (21G115)

When I use the dockerfile-maven-plugin plugin for dockerfile:deploy to build the image, it prompts an error:java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/s8/13717jdj3jn4gq6n5y9jh8480000gn/T/jffi7101705819295494870.dylib

enter image description here

There is also no such file in the directory /var/folders/s8/13717jdj3jn4gq6n5y9jh8480000gn/T/:jffi7101705819295494870.dylib: enter image description here

1

There are 1 answers

1
jiaqi On

Specific solution reference: arm64 is not supported, Need to replace plugin。 https://github.com/spotify/dockerfile-maven/issues/394