记springboot项目打包使用docker部署 basedir \src\main\docker does not exist

记springboot项目打包使用docker部署 basedir \src\main\docker does not exist

报错信息:

[WARNING] The requested profile "dev-docker" could not be activated because it does not exist.
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project catdemo: Exception caught: basedir \src\main\docker 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:

大致意思就是 \src\main\docker 不存在  也就是找不到dockerfile文件

看了网上说好像docker配置里有个识别路径,前面自动拼接了什么之类的,没有去细查

把<dockerDirectory>标签加上${project.basedir},整到最后反正还是个路径的问题

 

记springboot项目打包使用docker部署 basedir \src\main\docker does not exist