Home>Article>Operation and Maintenance> How to solve maven docker error problem

How to solve maven docker error problem

藏色散人
藏色散人 Original
2022-01-12 17:14:38 3060browse

Solutions to maven docker errors: 1. Modify the maven project to lowercase; 2. Restart the docker service; 3. Modify the maven account configuration information.

How to solve maven docker error problem

The operating environment of this article: centos7 system, docker-maven-plugin version 0.4.11, Dell G3 computer.

How to solve the maven docker error problem?

maven docker plugin FAQ solutions:

1. The maven project must use lowercase, otherwise there will always be 500 errors

500: HTTP 500InternalServerError

2. The number of docker server connections exceeds

Failed to execute goal com.spotify:docker-maven-plugin:0.4.11:build (default-cli) on project activityservice:Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException:No such file or directory

Solution:

The simplest method is to restart the docker service

systemctl restart docker

3. maven account configuration Question

 com.spotify docker-maven-plugin 0.4.11  XXXXXXXXXX/activitycenter/${project.artifactId} activitycenter-${project.version} src/main/docker docker-image true   / ${project.build.directory} ${project.build.finalName}.jar    

serverId docker-image configuration information account information:

 docker-image admin XXXXX  XXXXXX@XXXXXX.com  

Pay attention to the email configuration

Recommended learning: "docker tutorial"

The above is the detailed content of How to solve maven docker error problem. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn