apache / rocketmq-exporter

Apache RocketMQ Prometheus Exporter
https://rocketmq.apache.org/
Apache License 2.0
294 stars 171 forks source link

Build docker image with maven failed #154

Closed caigy closed 10 months ago

caigy commented 10 months ago

Describe the bug Building docker image as instructions in document failed with output:

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.11:build (default-cli) on project rocketmq-exporter: Exception caught: ADD failed: file not found in build context or excluded by .dockerignore: stat rocketmq-exporter-0.0.2-SNAPSHOT-exec.jar: file does not exist -> [Help 1]

To Reproduce Steps to reproduce the behavior:

  1. Run mvn package -Dmaven.test.skip=true docker:build
  2. The building process will end with error.

Expected behavior The docker image should be successfully created.