-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
What happened:
mvn install build encountered an issue, like following:
[INFO] --- docker-maven-plugin:0.3.258:build (default) @ inventory-service ---
[INFO] Copying /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/target/inventory-service-0.0.1-SNAPSHOT.jar -> /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/target/docker/inventory-service-0.0.1-SNAPSHOT.jar
[INFO] Copying /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/src/main/docker/Dockerfile -> /Users/huan/work/IdeaProjects/frakti-work/src/github.com/huanwei/spring-cloud-event-sourcing-example/inventory-service/target/docker/Dockerfile
[INFO] Building image kbastani/inventory-service
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] event-sourcing/parent .............................. SUCCESS [ 0.400 s]
[INFO] event-sourcing/inventory-service ................... FAILURE [ 12.512 s]
[INFO] event-sourcing/order-service ....................... SKIPPED
[INFO] event-sourcing/account-service ..................... SKIPPED
[INFO] event-sourcing/user-service ........................ SKIPPED
[INFO] event-sourcing/payment-service ..................... SKIPPED
[INFO] event-sourcing/config-service ...................... SKIPPED
[INFO] event-sourcing/discovery-service ................... SKIPPED
[INFO] event-sourcing/online-store-web .................... SKIPPED
[INFO] event-sourcing/catalog-service ..................... SKIPPED
[INFO] event-sourcing/edge-service ........................ SKIPPED
[INFO] event-sourcing/shopping-cart-service ............... SKIPPED
[INFO] event-sourcing/hystrix-dashboard ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
And below are the error information:
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.3.258:build (default) on project inventory-service: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) -> [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 :inventory-service
What you expected to happen:
mvn install build should be success
How to reproduce it (as minimally and precisely as possible):
mvn clean install -DskipTests
Environment:
- OS (e.g. from /etc/os-release): MacOS
- Kernel (e.g.
uname -a): Darwin Kernel Version 17.4.0 - Docker version: 18.06.0-ce, build 0ffa825
- Install tools: Apache Maven 3.3.9
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels