一、该问题的重现步骤是什么?
在win10环境下使用dockerfile-maven-plugin push镜像到harbor的时候报错
执行命令:
mvn clean package dockerfile:build dockerfile:push
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"
seettings.xml配置了
跟目录的pom.xml配置了
2375端口开放了
http访问配置了
二、你期待的结果是什么?实际看到的又是什么?
可以完成push操作,实际报错了
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
使用的 springcloud产品,2.8.1
四、请提供详细的错误堆栈信息,这很重要。
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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-auth:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-common:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-gateway:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-admin:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-develop:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-flow:${bladex.project.version}, E:\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-flow-design:jar:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-flow-design:${bladex.project.version}, E:\BladeX\blade-ops\blade-flow-design\pom.xml, line 14, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-log:jar:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-log:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-report:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-resource:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-swagger:${bladex.project.version}, E:\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-turbine:jar:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-turbine:${bladex.project.version}, E:\BladeX\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.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-xxljob:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-xxljob-admin:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-flow-api:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-resource-api:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-desk:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-system:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-user:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-desk-api:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-dict-api:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-scope-api:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-system-api:${bladex.project.version}, E:\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:2.8.1.RELEASE
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-user-api:${bladex.project.version}, E:\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
[INFO] blade-common
[INFO] blade-service-api
[INFO] blade-user-api
[INFO] blade-system-api
[INFO] blade-auth
[INFO] blade-gateway
[INFO] blade-ops
[INFO] blade-admin
[INFO] blade-dict-api
[INFO] blade-develop
[INFO] blade-scope-api
[INFO] blade-ops-api
[INFO] blade-flow-api
[INFO] blade-flow
[INFO] blade-flow-design
[INFO] blade-log
[INFO] blade-report
[INFO] blade-resource-api
[INFO] blade-resource
[INFO] blade-swagger
[INFO] blade-turbine
[INFO] blade-xxljob
[INFO] blade-xxljob-admin
[INFO] blade-plugin
[INFO] blade-plugin-api
[INFO] blade-desk-api
[INFO] blade-service
[INFO] blade-desk
[INFO] blade-system
[INFO] blade-user
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building BladeX 2.8.1.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ BladeX ---
[INFO] Deleting E:\BladeX\target
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.13.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] ------------------------------------------------------------------------
[INFO] Building blade-common 2.8.1.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-common ---
[INFO] Deleting E:\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 E:\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 E:\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: E:\BladeX\blade-common\target\blade-common.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.13.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] ------------------------------------------------------------------------
[INFO] Building blade-service-api 2.8.1.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-service-api ---
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.13.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] ------------------------------------------------------------------------
[INFO] Building blade-user-api 2.8.1.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-user-api ---
[INFO] Deleting E:\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 E:\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 11 source files to E:\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 E:\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: E:\BladeX\blade-service-api\blade-user-api\target\blade-user-api.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.13.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] ------------------------------------------------------------------------
[INFO] Building blade-system-api 2.8.1.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-system-api ---
[INFO] Deleting E:\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 E:\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 37 source files to E:\BladeX\blade-service-api\blade-system-api\target\classes
[INFO] /E:/BladeX/blade-service-api/blade-system-api/src/main/java/org/springblade/system/cache/SysCache.java: E:\BladeX\blade-service-api\blade-system-api\src\main\java\org\springblade\system\cache\SysCache.java使用了未经检查或不安全的操作。
[INFO] /E:/BladeX/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 E:\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: E:\BladeX\blade-service-api\blade-system-api\target\blade-system-api.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.13.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] ------------------------------------------------------------------------
[INFO] Building blade-auth 2.8.1.RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ blade-auth ---
[INFO] Deleting E:\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 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 20 source files to E:\BladeX\blade-auth\target\classes
[INFO] /E:/BladeX/blade-auth/src/main/java/org/springblade/auth/handler/AppLoginInSuccessHandler.java: E:\BladeX\blade-auth\src\main\java\org\springblade\auth\handler\AppLoginInSuccessHandler.java使用或覆盖了已过时的 API。
[INFO] /E:/BladeX/blade-auth/src/main/java/org/springblade/auth/handler/AppLoginInSuccessHandler.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 E:\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: E:\BladeX\blade-auth\target\blade-auth.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.13.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 E:\BladeX\target
[INFO] Executed tasks
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:build (default-cli) @ blade-auth ---
[INFO] dockerfile: null
[INFO] contextDirectory: E:\BladeX\blade-auth
[INFO] Building Docker context E:\BladeX\blade-auth
[INFO] Path(dockerfile): null
[INFO] Path(contextDirectory): E:\BladeX\blade-auth
[INFO]
[INFO] Image will be built as 192.168.1.132/blade/blade-auth:2.8.1.RELEASE
[INFO]
[INFO] Step 1/8 : FROM bladex/alpine-java:openjdk8-openj9_cn_slim
[INFO]
[INFO] Pulling from bladex/alpine-java
[INFO] Digest: sha256:2b7a9995e7562ec4c55b7f3aae1419965a32a6e14b1cd47a5b47b23511fd308f
[INFO] Status: Image is up to date for bladex/alpine-java:openjdk8-openj9_cn_slim
[INFO] ---> fb9059866229
[INFO] Step 2/8 : MAINTAINER bladejava@qq.com
[INFO]
[INFO] ---> Using cache
[INFO] ---> 93c348e9064b
[INFO] Step 3/8 : RUN mkdir -p /blade/auth
[INFO]
[INFO] ---> Using cache
[INFO] ---> b33df9d0a512
[INFO] Step 4/8 : WORKDIR /blade/auth
[INFO]
[INFO] ---> Using cache
[INFO] ---> 4a9a17caae3c
[INFO] Step 5/8 : EXPOSE 8100
[INFO]
[INFO] ---> Using cache
[INFO] ---> 33f08434aae1
[INFO] Step 6/8 : ADD ./target/blade-auth.jar ./app.jar
[INFO]
[INFO] ---> 3737e55ce63b
[INFO] Step 7/8 : ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
[INFO]
[INFO] ---> Running in 051348ee82be
[INFO] Removing intermediate container 051348ee82be
[INFO] ---> cec13c9bca40
[INFO] Step 8/8 : CMD ["--spring.profiles.active=test"]
[INFO]
[INFO] ---> Running in d71975c37e9c
[INFO] Removing intermediate container d71975c37e9c
[INFO] ---> 3caa57099df7
[INFO] [Warning] One or more build-args [JAR_FILE] were not consumed
[INFO] Successfully built 3caa57099df7
[INFO] Successfully tagged 192.168.1.132/blade/blade-auth:2.8.1.RELEASE
[INFO]
[INFO] Detected build of image with id 3caa57099df7
[INFO] Building jar: E:\BladeX\blade-auth\target\blade-auth-docker-info.jar
[INFO] Successfully built 192.168.1.132/blade/blade-auth:2.8.1.RELEASE
[INFO]
[INFO] --- dockerfile-maven-plugin:1.4.13:push (default-cli) @ blade-auth ---
[INFO] The push refers to repository [192.168.1.132/blade/blade-auth]
[INFO] Image bbefaed648d5: Preparing
[INFO] Image 0c0b053d34b3: Preparing
[INFO] Image 022e61f1a07d: Preparing
[INFO] Image 91fef57e43c2: Preparing
[INFO] Image 86c7f9599ba1: Preparing
[INFO] Image d148a6d68ba3: Preparing
[INFO] Image 50644c29ef5a: Preparing
[INFO] Image d148a6d68ba3: Waiting
[INFO] Image 50644c29ef5a: Waiting
[ERROR] error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"
[WARNING] An attempt failed, will retry 1 more times
org.apache.maven.plugin.MojoExecutionException: Could not push image
at com.spotify.plugin.dockerfile.PushMojo.execute(PushMojo.java:90)
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:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
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:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: com.spotify.docker.client.exceptions.DockerException: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</htm
l>\r\n"
at com.spotify.plugin.dockerfile.LoggingProgressHandler.handleError(LoggingProgressHandler.java:105)
at com.spotify.plugin.dockerfile.LoggingProgressHandler.progress(LoggingProgressHandler.java:63)
at com.spotify.docker.client.ProgressStream.tail(ProgressStream.java:77)
at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call(DefaultDockerClient.java:2754)
at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call(DefaultDockerClient.java:2738)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[INFO] The push refers to repository [192.168.1.132/blade/blade-auth]
[INFO] Image bbefaed648d5: Preparing
[INFO] Image 0c0b053d34b3: Preparing
[INFO] Image 022e61f1a07d: Preparing
[INFO] Image 91fef57e43c2: Preparing
[INFO] Image 86c7f9599ba1: Preparing
[INFO] Image d148a6d68ba3: Preparing
[INFO] Image 50644c29ef5a: Preparing
[INFO] Image d148a6d68ba3: Waiting
[INFO] Image 50644c29ef5a: Waiting
[ERROR] error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BladeX ............................................. SUCCESS [ 0.855 s]
[INFO] blade-common ....................................... SUCCESS [ 2.044 s]
[INFO] blade-service-api .................................. SUCCESS [ 0.190 s]
[INFO] blade-user-api ..................................... SUCCESS [ 1.368 s]
[INFO] blade-system-api ................................... SUCCESS [ 1.853 s]
[INFO] blade-auth ......................................... FAILURE [02:47 min]
[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-flow-design .................................. 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: 02:55 min
[INFO] Finished at: 2021-07-01T16:35:45+08:00
[INFO] Final Memory: 181M/1147M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.13:push (default-cli) on project blade-auth: Could not push image: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404
Not Found</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n" -> [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 <goals> -rf :blade-auth
五、若有更多详细信息,请在下面提供。
我只找到了这个issue与你相似,具体问题看他们的对话应该还是docker本身配置的问题:https://github.com/docker/for-win/issues/1291
扫一扫访问 Blade技术社区 移动端