Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (default-cli) on project PetHome

使用mvn clean package -Dmaven.test.skip=true docker:build 打包镜像时报错

[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ PetHome ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ PetHome ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ PetHome ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ PetHome ---
[INFO] Building jar: D:\study\java\PetHome\target\pethome.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.6.RELEASE:repackage (default) @ PetHome ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] --- docker-maven-plugin:0.4.13:build (default-cli) @ PetHome ---
[INFO] Copying D:\study\java\PetHome\target\pethome.jar -> D:\study\java\PetHome\target\docker\pethome.jar
[INFO] Building image PetHome:1.0-SNAPSHOT
三月 01, 2022 1:34:29 下午 org.apache.http.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {}->http://101.35.190.233:2375: Connection reset by peer: socket write error
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.801 s
[INFO] Finished at: 2022-03-01T13:34:29+08:00
[INFO] Final Memory: 62M/695M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (default-cli) on project PetHome: Exception caught: java.util.concurrent.ExecutionException: com.spotify.do
cker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.client.ClientProtocolException: Cannot retry request with a non-repeatable request entity: Connection reset by peer
: socket write error -> [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


原因是我的pom.xml里面artifactId是大写的


    <groupId>top.cdzzh</groupId>
    <artifactId>PetHome</artifactId>
    <version>1.0-SNAPSHOT</version>

解决改成小写即可,version大写没得关系

```java

    <groupId>top.cdzzh</groupId>
    <artifactId>pethome</artifactId>
    <version>1.0-SNAPSHOT</version>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值