使用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>