Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn build issue #28

Open
huanwei opened this issue Dec 12, 2018 · 1 comment · May be fixed by #29
Open

mvn build issue #28

huanwei opened this issue Dec 12, 2018 · 1 comment · May be fixed by #29

Comments

@huanwei
Copy link

huanwei commented Dec 12, 2018

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
@huanwei huanwei linked a pull request Dec 12, 2018 that will close this issue
@recaifurkan
Copy link

Ekran görüntüsü 2021-02-09 112850
Check Expose ... and problem solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants