一、该问题的重现步骤是什么?
1. 部署时出错,使用dockerfile-maven-plugin docker harbor 部署出错;
2. docker login 可以正常登录;
3.docker 手动可以push image,这个功能正常,
4.但是通过 mvn clean package dockerfile:build dockerfile:push 报以下错误:
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
bladex-2.9.1
四、请提供详细的错误堆栈信息,这很重要。
/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/yinglu/work/qq-cloud/bladex-2.9.1 -Dmaven.home=/Applications/IntelliJ IDEA 2.app/Contents/plugins/maven/lib/maven3 -Dclassworlds.conf=/Applications/IntelliJ IDEA 2.app/Contents/plugins/maven/lib/maven3/bin/m2.conf -Dmaven.ext.class.path=/Applications/IntelliJ IDEA 2.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Applications/IntelliJ IDEA 2.app/Contents/lib/idea_rt.jar=52445:/Applications/IntelliJ IDEA 2.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA 2.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ IDEA 2.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2020.3.3 -s /Users/yinglu/.m2/settings.xml -Dmaven.repo.local=/Users/yinglu/.m2/repository 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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-auth:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth/pom.xml, line 16, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-gateway:jar:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-gateway:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-admin:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-develop:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-flow:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-log:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-report:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-resource:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-swagger:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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-turbine:jar:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-turbine:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-ops/blade-turbine/pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-xxljob:jar:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-xxljob:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-xxljob-admin:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-flow-api:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-resource-api:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-desk:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-system:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-user:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-desk-api:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-dict-api:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-scope-api:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-system-api:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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:2.9.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-user-api:${bladex.project.version}, /Users/yinglu/work/qq-cloud/bladex-2.9.1/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-turbine [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 2.9.1.RELEASE [1/30]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ BladeX ---
[INFO] Deleting /Users/yinglu/work/qq-cloud/bladex-2.9.1/target
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.12.RELEASE: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 2.9.1.RELEASE [2/30]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-common ---
[INFO] Deleting /Users/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/blade-common/target/classes
[ERROR] 读取/Users/yinglu/.m2/repository/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar时出错; zip file is empty
[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/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/blade-common/target/blade-common.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.12.RELEASE: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 2.9.1.RELEASE [3/30]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-service-api ---
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.12.RELEASE: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 2.9.1.RELEASE [4/30]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-user-api ---
[INFO] Deleting /Users/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/blade-service-api/blade-user-api/target/classes
[ERROR] 读取/Users/yinglu/.m2/repository/io/github/openfeign/feign-core/10.12/feign-core-10.12.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/github/openfeign/feign-core/10.12/feign-core-10.12.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.jar时出错; zip file is empty
[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/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/blade-service-api/blade-user-api/target/blade-user-api.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.12.RELEASE: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 2.9.1.RELEASE [5/30]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-system-api ---
[INFO] Deleting /Users/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/blade-service-api/blade-system-api/target/classes
[ERROR] 读取/Users/yinglu/.m2/repository/io/github/openfeign/feign-core/10.12/feign-core-10.12.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/github/openfeign/feign-core/10.12/feign-core-10.12.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.jar时出错; zip file is empty
[INFO] /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-service-api/blade-system-api/src/main/java/org/springblade/system/cache/SysCache.java: /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-service-api/blade-system-api/src/main/java/org/springblade/system/cache/SysCache.java使用了未经检查或不安全的操作。
[INFO] /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-service-api/blade-system-api/src/main/java/org/springblade/system/cache/SysCache.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[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/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/blade-service-api/blade-system-api/target/blade-system-api.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.12.RELEASE: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 2.9.1.RELEASE [6/30]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-auth ---
[INFO] Deleting /Users/yinglu/work/qq-cloud/bladex-2.9.1/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 4 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/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth/target/classes
[ERROR] 读取/Users/yinglu/.m2/repository/io/github/openfeign/feign-core/10.12/feign-core-10.12.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.3.72/kotlin-stdlib-1.3.72.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/github/openfeign/feign-core/10.12/feign-core-10.12.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.3.72/kotlin-stdlib-1.3.72.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar时出错; zip file is empty
[ERROR] 读取/Users/yinglu/.m2/repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.jar时出错; zip file is empty
[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/yinglu/work/qq-cloud/bladex-2.9.1/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/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth/target/blade-auth.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.12.RELEASE: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/yinglu/work/qq-cloud/bladex-2.9.1/target
[INFO] Executed tasks
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-auth ---
[INFO] dockerfile: null
[INFO] contextDirectory: /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth
[INFO] Building Docker context /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth
[INFO] Path(dockerfile): null
[INFO] Path(contextDirectory): /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth
[INFO]
[INFO] Image will be built as 192.168.100.153:19443/blade/blade-auth:2.9.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:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: com.spotify.docker.client.exceptions.DockerException: java.io.IOException: Cannot run program "docker-credential-desktop": error=2, No such file or directory
at com.spotify.docker.client.auth.ConfigFileRegistryAuthSupplier.authForBuild (ConfigFileRegistryAuthSupplier.java:108)
at com.spotify.docker.client.auth.MultiRegistryAuthSupplier.authForBuild (MultiRegistryAuthSupplier.java:77)
at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1488)
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:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: java.io.IOException: Cannot run program "docker-credential-desktop": error=2, No such file or directory
at java.lang.ProcessBuilder.start (ProcessBuilder.java:1048)
at java.lang.Runtime.exec (Runtime.java:620)
at java.lang.Runtime.exec (Runtime.java:450)
at java.lang.Runtime.exec (Runtime.java:347)
at com.spotify.docker.client.SystemCredentialHelperDelegate.exec (SystemCredentialHelperDelegate.java:140)
at com.spotify.docker.client.SystemCredentialHelperDelegate.get (SystemCredentialHelperDelegate.java:88)
at com.spotify.docker.client.DockerCredentialHelper.get (DockerCredentialHelper.java:119)
at com.spotify.docker.client.DockerConfigReader.authWithCredentialHelper (DockerConfigReader.java:287)
at com.spotify.docker.client.DockerConfigReader.authForAllRegistries (DockerConfigReader.java:166)
at com.spotify.docker.client.auth.ConfigFileRegistryAuthSupplier.authForBuild (ConfigFileRegistryAuthSupplier.java:106)
at com.spotify.docker.client.auth.MultiRegistryAuthSupplier.authForBuild (MultiRegistryAuthSupplier.java:77)
at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1488)
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:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec (Native Method)
at java.lang.UNIXProcess.
at java.lang.ProcessImpl.start (ProcessImpl.java:134)
at java.lang.ProcessBuilder.start (ProcessBuilder.java:1029)
at java.lang.Runtime.exec (Runtime.java:620)
at java.lang.Runtime.exec (Runtime.java:450)
at java.lang.Runtime.exec (Runtime.java:347)
at com.spotify.docker.client.SystemCredentialHelperDelegate.exec (SystemCredentialHelperDelegate.java:140)
at com.spotify.docker.client.SystemCredentialHelperDelegate.get (SystemCredentialHelperDelegate.java:88)
at com.spotify.docker.client.DockerCredentialHelper.get (DockerCredentialHelper.java:119)
at com.spotify.docker.client.DockerConfigReader.authWithCredentialHelper (DockerConfigReader.java:287)
at com.spotify.docker.client.DockerConfigReader.authForAllRegistries (DockerConfigReader.java:166)
at com.spotify.docker.client.auth.ConfigFileRegistryAuthSupplier.authForBuild (ConfigFileRegistryAuthSupplier.java:106)
at com.spotify.docker.client.auth.MultiRegistryAuthSupplier.authForBuild (MultiRegistryAuthSupplier.java:77)
at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1488)
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:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
[INFO] dockerfile: null
[INFO] contextDirectory: /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth
[INFO] Building Docker context /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth
[INFO] Path(dockerfile): null
[INFO] Path(contextDirectory): /Users/yinglu/work/qq-cloud/bladex-2.9.1/blade-auth
[INFO]
[INFO] Image will be built as 192.168.100.153:19443/blade/blade-auth:2.9.1.RELEASE
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for BladeX 2.9.1.RELEASE:
[INFO]
[INFO] BladeX ............................................. SUCCESS [ 1.601 s]
[INFO] blade-common ....................................... SUCCESS [ 2.740 s]
[INFO] blade-service-api .................................. SUCCESS [ 0.453 s]
[INFO] blade-user-api ..................................... SUCCESS [ 1.469 s]
[INFO] blade-system-api ................................... SUCCESS [ 2.146 s]
[INFO] blade-auth ......................................... FAILURE [ 3.719 s]
[INFO] blade-gateway ...................................... SKIPPED
[INFO] blade-ops .......................................... SKIPPED
[INFO] blade-admin ........................................ SKIPPED
[INFO] blade-dict-api ..................................... SKIPPED
[INFO] blade-develop ...................................... SKIPPED
[INFO] blade-scope-api .................................... SKIPPED
[INFO] blade-ops-api ...................................... SKIPPED
[INFO] blade-flow-api ..................................... SKIPPED
[INFO] blade-flow ......................................... SKIPPED
[INFO] blade-log .......................................... SKIPPED
[INFO] blade-report ....................................... SKIPPED
[INFO] blade-resource-api ................................. SKIPPED
[INFO] blade-resource ..................................... SKIPPED
[INFO] blade-swagger ...................................... SKIPPED
[INFO] blade-turbine ...................................... SKIPPED
[INFO] blade-xxljob ....................................... SKIPPED
[INFO] blade-xxljob-admin ................................. SKIPPED
[INFO] blade-plugin ....................................... SKIPPED
[INFO] blade-plugin-api ................................... SKIPPED
[INFO] blade-desk-api ..................................... SKIPPED
[INFO] blade-service ...................................... SKIPPED
[INFO] blade-desk ......................................... SKIPPED
[INFO] blade-system ....................................... SKIPPED
[INFO] blade-user ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.999 s
[INFO] Finished at: 2022-05-11T09:56:48+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.13:build (default-cli) on project blade-auth: Could not build image: java.io.IOException: Cannot run program "docker-credential-desktop": error=2, No such file or directory -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
Process finished with exit code 1
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端