SpringCloud
SpringCloud copied to clipboard
authorization-server docker镜像打包报错
Step 3/4 : ADD authorization-server-0.0.1-SNAPSHOT.jar app.jar
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.595 s [INFO] Finished at: 2021-01-04T23:50:23-08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default-cli) on project authorization-server: Exception caught: ADD failed: file not found in build context or excluded by .dockerignore: stat authorization-server-0.0.1-SNAPSHOT.jar: file does not exist -> [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
说的是没找到jar包,先编译出jar包在build镜像