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

Build docker image with maven failed #154

Closed
caigy opened this issue Jan 21, 2024 · 0 comments · Fixed by #155
Closed

Build docker image with maven failed #154

caigy opened this issue Jan 21, 2024 · 0 comments · Fixed by #155
Assignees
Labels
bug Something isn't working
Milestone

Comments

@caigy
Copy link
Contributor

caigy commented Jan 21, 2024

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.

@caigy caigy self-assigned this Jan 21, 2024
@caigy caigy added the bug Something isn't working label Jan 21, 2024
@caigy caigy added this to the 0.0.2 milestone Jan 21, 2024
@caigy caigy closed this as completed in 7cc732e Jan 21, 2024
RongtongJin pushed a commit that referenced this issue Jan 22, 2024
Co-authored-by: gaoyang.cgy <gaoyang.cgy@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant