执行 docker 构建时出错,mvn clean package dockerfile:build dockerfile:push

Docker 未结 1 500
2739502370
2739502370 剑童 2023-03-11 17:28

一、该问题的重现步骤是什么?

1. 执行 maven 插件的 dockerfile:build 或是 在终端打命令,出错


二、你期待的结果是什么?实际看到的又是什么?

希望看到 docker 构建成功,但实际上报错:


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex 联合版 3.0.1,docker 服务器及 harbor 均在服务器上(192.168.8.9),centos7,客户端为 idea 2022.3.2 mac m1 13.2.1


四、请提供详细的错误堆栈信息,这很重要。

usermac@bogon BladeX % mvn clean package dockerfile:build dockerfile:push
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-auth:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-auth:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-auth/pom.xml, line 16, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-common:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-common:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-common/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-gateway:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-gateway:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-gateway/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-admin:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-admin:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-admin/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-develop:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-develop:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-develop/pom.xml, line 16, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-flow:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-flow:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-flow/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-log:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-log:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-log/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-report:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-report:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-report/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-resource:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-resource:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-resource/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-swagger:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-swagger:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-swagger/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-xxljob:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-xxljob:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-xxljob/pom.xml, line 13, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-xxljob-admin:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-xxljob-admin:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops/blade-xxljob-admin/pom.xml, line 13, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-flow-api:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-flow-api:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops-api/blade-flow-api/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-resource-api:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-resource-api:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-ops-api/blade-resource-api/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-desk:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-desk:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service/blade-desk/pom.xml, line 16, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-system:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-system:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service/blade-system/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-user:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-user:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service/blade-user/pom.xml, line 15, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-desk-api:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-desk-api:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service-api/blade-desk-api/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-dict-api:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-dict-api:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service-api/blade-dict-api/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-scope-api:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-scope-api:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service-api/blade-scope-api/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-system-api:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-system-api:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-user-api:jar:3.0.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-user-api:${bladex.project.version}, /Users/usermac/sded/BladeX/blade-service-api/blade-user-api/pom.xml, line 14, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] BladeX                                                             [pom]
[INFO] blade-common                                                       [jar]
[INFO] blade-service-api                                                  [pom]
[INFO] blade-user-api                                                     [jar]
[INFO] blade-system-api                                                   [jar]
[INFO] blade-auth                                                         [jar]
[INFO] blade-gateway                                                      [jar]
[INFO] blade-ops                                                          [pom]
[INFO] blade-admin                                                        [jar]
[INFO] blade-dict-api                                                     [jar]
[INFO] blade-develop                                                      [jar]
[INFO] blade-scope-api                                                    [jar]
[INFO] blade-ops-api                                                      [pom]
[INFO] blade-flow-api                                                     [jar]
[INFO] blade-flow                                                         [jar]
[INFO] blade-log                                                          [jar]
[INFO] blade-report                                                       [jar]
[INFO] blade-resource-api                                                 [jar]
[INFO] blade-resource                                                     [jar]
[INFO] blade-swagger                                                      [jar]
[INFO] blade-xxljob                                                       [jar]
[INFO] blade-xxljob-admin                                                 [jar]
[INFO] blade-plugin                                                       [pom]
[INFO] blade-plugin-api                                                   [pom]
[INFO] blade-desk-api                                                     [jar]
[INFO] blade-service                                                      [pom]
[INFO] blade-desk                                                         [jar]
[INFO] blade-system                                                       [jar]
[INFO] blade-user                                                         [jar]
[INFO]
[INFO] -----------------------< org.springblade:BladeX >-----------------------
[INFO] Building BladeX 3.0.1.RELEASE                                     [1/29]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ BladeX ---
[INFO] Deleting /Users/usermac/sded/BladeX/target
[INFO]
[INFO] --- spring-boot-maven-plugin:2.7.1:repackage (default) @ BladeX ---
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ BladeX ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:push (default-cli) @ BladeX ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] --------------------< org.springblade:blade-common >--------------------
[INFO] Building blade-common 3.0.1.RELEASE                               [2/29]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-common ---
[INFO] Deleting /Users/usermac/sded/BladeX/blade-common/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ blade-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ blade-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /Users/usermac/sded/BladeX/blade-common/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ blade-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/usermac/sded/BladeX/blade-common/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ blade-common ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ blade-common ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ blade-common ---
[INFO] Building jar: /Users/usermac/sded/BladeX/blade-common/target/blade-common.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.7.1:repackage (default) @ blade-common ---
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-common ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:push (default-cli) @ blade-common ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] -----------------< org.springblade:blade-service-api >------------------
[INFO] Building blade-service-api 3.0.1.RELEASE                          [3/29]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-service-api ---
[INFO]
[INFO] --- spring-boot-maven-plugin:2.7.1:repackage (default) @ blade-service-api ---
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-service-api ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:push (default-cli) @ blade-service-api ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] -------------------< org.springblade:blade-user-api >-------------------
[INFO] Building blade-user-api 3.0.1.RELEASE                             [4/29]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-user-api ---
[INFO] Deleting /Users/usermac/sded/BladeX/blade-service-api/blade-user-api/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ blade-user-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/usermac/sded/BladeX/blade-service-api/blade-user-api/src/main/resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ blade-user-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to /Users/usermac/sded/BladeX/blade-service-api/blade-user-api/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ blade-user-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/usermac/sded/BladeX/blade-service-api/blade-user-api/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ blade-user-api ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ blade-user-api ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ blade-user-api ---
[INFO] Building jar: /Users/usermac/sded/BladeX/blade-service-api/blade-user-api/target/blade-user-api.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.7.1:repackage (default) @ blade-user-api ---
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-user-api ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:push (default-cli) @ blade-user-api ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] ------------------< org.springblade:blade-system-api >------------------
[INFO] Building blade-system-api 3.0.1.RELEASE                           [5/29]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-system-api ---
[INFO] Deleting /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ blade-system-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/src/main/resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ blade-system-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 38 source files to /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/target/classes
[INFO] /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/src/main/java/org/springblade/system/cache/SysCache.java: /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/src/main/java/org/springblade/system/cache/SysCache.java使用了未经检查或不安全的操作。
[INFO] /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/src/main/java/org/springblade/system/cache/SysCache.java: 有关详细信息, 请使用 -Xliked 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ blade-system-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ blade-system-api ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ blade-system-api ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ blade-system-api ---
[INFO] Building jar: /Users/usermac/sded/BladeX/blade-service-api/blade-system-api/target/blade-system-api.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.7.1:repackage (default) @ blade-system-api ---
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-system-api ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:push (default-cli) @ blade-system-api ---
[INFO] Skipping execution because 'dockerfile.skip' is set
[INFO]
[INFO] ---------------------< org.springblade:blade-auth >---------------------
[INFO] Building blade-auth 3.0.1.RELEASE                                 [6/29]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-auth ---
[INFO] Deleting /Users/usermac/sded/BladeX/blade-auth/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ blade-auth ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 13 resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ blade-auth ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 19 source files to /Users/usermac/sded/BladeX/blade-auth/target/classes
[INFO] /Users/usermac/sded/BladeX/blade-auth/src/main/java/org/springblade/auth/config/SecurityConfiguration.java: /Users/usermac/sded/BladeX/blade-auth/src/main/java/org/springblade/auth/config/SecurityConfiguration.java使用或覆盖了已过时的 API。
[INFO] /Users/usermac/sded/BladeX/blade-auth/src/main/java/org/springblade/auth/config/SecurityConfiguration.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ blade-auth ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/usermac/sded/BladeX/blade-auth/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ blade-auth ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ blade-auth ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ blade-auth ---
[INFO] Building jar: /Users/usermac/sded/BladeX/blade-auth/target/blade-auth.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.7.1:repackage (default) @ blade-auth ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] --- maven-antrun-plugin:1.3:run (default) @ blade-auth ---
[INFO] Executing tasks
     [copy] Copying 1 file to /Users/usermac/sded/BladeX/target
[INFO] Executed tasks
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-auth ---
[INFO] dockerfile: null
[INFO] contextDirectory: /Users/usermac/sded/BladeX/blade-auth
[INFO] Building Docker context /Users/usermac/sded/BladeX/blade-auth
[INFO] Path(dockerfile): null
[INFO] Path(contextDirectory): /Users/usermac/sded/BladeX/blade-auth
[INFO]
[INFO] Image will be built as 192.168.8.9/blade/blade-auth:3.0.1.RELEASE
[INFO]
[WARNING] An attempt failed, will retry 1 more times
org.apache.maven.plugin.MojoExecutionException: Could not build image
    at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:247)
    at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:135)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.spotify.docker.client.exceptions.DockerException: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.lang.UnsatisfiedLinkError: could not load FFI provider com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.Provider
    at com.spotify.docker.client.DefaultDockerClient.propagate (DefaultDockerClient.java:2848)
    at com.spotify.docker.client.DefaultDockerClient.request (DefaultDockerClient.java:2712)
    at com.spotify.docker.client.DefaultDockerClient.version (DefaultDockerClient.java:600)
    at com.spotify.docker.client.DefaultDockerClient.authRegistryHeader (DefaultDockerClient.java:2891)
    at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1498)
    at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1465)
    at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:240)
    at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:135)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.lang.UnsatisfiedLinkError: could not load FFI provider com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.Provider
    at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.getValue (AbstractFuture.java:299)
    at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.get (AbstractFuture.java:286)
    at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture.get (AbstractFuture.java:116)
    at com.spotify.docker.client.DefaultDockerClient.request (DefaultDockerClient.java:2710)
    at com.spotify.docker.client.DefaultDockerClient.version (DefaultDockerClient.java:600)
    at com.spotify.docker.client.DefaultDockerClient.authRegistryHeader (DefaultDockerClient.java:2891)
    at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1498)
    at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1465)
    at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:240)
    at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:135)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.lang.UnsatisfiedLinkError: could not load FFI provider com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.Provider
    at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.processFailure (ClientRuntime.java:202)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.access$400 (ClientRuntime.java:79)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run (ClientRuntime.java:182)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:271)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:267)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:315)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:297)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:267)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:340)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run (ClientRuntime.java:210)
    at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.lang.UnsatisfiedLinkError: could not load FFI provider com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.Provider
    at com.spotify.docker.client.shaded.jnr.ffi.provider.InvalidProvider$1.loadLibrary (InvalidProvider.java:48)
    at com.spotify.docker.client.shaded.jnr.ffi.LibraryLoader.load (LibraryLoader.java:325)
    at com.spotify.docker.client.shaded.jnr.unixsocket.Native.<clinit> (Native.java:80)
    at com.spotify.docker.client.shaded.jnr.unixsocket.UnixSocketChannel.<init> (UnixSocketChannel.java:101)
    at com.spotify.docker.client.shaded.jnr.unixsocket.UnixSocketChannel.open (UnixSocketChannel.java:60)
    at com.spotify.docker.client.UnixConnectionSocketFactory.createSocket (UnixConnectionSocketFactory.java:69)
    at com.spotify.docker.client.UnixConnectionSocketFactory.createSocket (UnixConnectionSocketFactory.java:44)
    at com.spotify.docker.client.shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:118)
    at com.spotify.docker.client.shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect (PoolingHttpClientConnectionManager.java:353)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:380)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
    at com.spotify.docker.client.shaded.org.apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184)
    at com.spotify.docker.client.shaded.org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:71)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:435)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector$1.run (ApacheConnector.java:491)
    at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute (MoreExecutors.java:299)
    at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:123)
    at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:50)
    at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:37)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:487)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run (ClientRuntime.java:178)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:271)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:267)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:315)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:297)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:267)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:340)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run (ClientRuntime.java:210)
    at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.lang.ExceptionInInitializerError
    at com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.NativeRuntime.getInstance (NativeRuntime.java:58)
    at com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.Provider.<init> (Provider.java:29)
    at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
    at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstanceWithCaller (Constructor.java:499)
    at java.lang.reflect.ReflectAccess.newInstance (ReflectAccess.java:128)
    at jdk.internal.reflect.ReflectionFactory.newInstance (ReflectionFactory.java:347)
    at java.lang.Class.newInstance (Class.java:645)
    at com.spotify.docker.client.shaded.jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.getInstance (FFIProvider.java:68)
    at com.spotify.docker.client.shaded.jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.<clinit> (FFIProvider.java:57)
    at com.spotify.docker.client.shaded.jnr.ffi.provider.FFIProvider.getSystemProvider (FFIProvider.java:35)
    at com.spotify.docker.client.shaded.jnr.ffi.LibraryLoader.create (LibraryLoader.java:73)
    at com.spotify.docker.client.shaded.jnr.unixsocket.Native.<clinit> (Native.java:76)
    at com.spotify.docker.client.shaded.jnr.unixsocket.UnixSocketChannel.<init> (UnixSocketChannel.java:101)
    at com.spotify.docker.client.shaded.jnr.unixsocket.UnixSocketChannel.open (UnixSocketChannel.java:60)
    at com.spotify.docker.client.UnixConnectionSocketFactory.createSocket (UnixConnectionSocketFactory.java:69)
    at com.spotify.docker.client.UnixConnectionSocketFactory.createSocket (UnixConnectionSocketFactory.java:44)
    at com.spotify.docker.client.shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:118)
    at com.spotify.docker.client.shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect (PoolingHttpClientConnectionManager.java:353)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:380)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88)
    at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
    at com.spotify.docker.client.shaded.org.apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184)
    at com.spotify.docker.client.shaded.org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:71)
    at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:435)
  

1条回答
  • 2023-03-11 17:34

    内容太长,补下:~



    五、若有更多详细信息,请在下面提供。
    1、服务器 docker 可使用,并且 2375 端口已开通,可访问:
    usermac@bogon ~ % curl 192.168.8.9:2375
{"message":"page not found"}
    2、Harbor服务可访问,端口已改至 59082,并已开通 http 转
    3、服务器配置已在 mvn setting 中配置
    <server>
      <id>192.168.8.9</id>
      <username>admin</username>
      <password>Harbor12345</password>
      <configuration>
        <email>usermac@qq.com</email>
      </configuration>
    </server>
    4、pom 配置已指向服务器ip及端口
    <!-- 推荐使用Harbor -->
    <docker.registry.url>192.168.8.9</docker.registry.url>
    <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
    <docker.username>admin</docker.username>
    <docker.password>Harbor12345</docker.password>
    <docker.namespace>blade</docker.namespace>
    <docker.plugin.version>1.4.13</docker.plugin.version>

    0 讨论(0)
提交回复