1. 程式人生 > >mvn docker外掛在執行 mvn clean package -DpushImage 時候報錯

mvn docker外掛在執行 mvn clean package -DpushImage 時候報錯

報錯資訊:

Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (build-image) on project basic-web-openApi: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.client.ClientProtocolException: Cannot retry request with a non-repeatable request entity: Broken pipe -> [Help 1]

報錯原因:

由於maven docker外掛要求maven座標不能有大寫字母 

解決方法:

檢查將大寫字母改成小寫

谷歌借鑑答案: