添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

报错信息:

[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},整到最后反正还是个路径的问题

Fail ed to ex ecute goal com.spotify: docker -maven-plugin:1.0.0:build Ex ception caught: based ir src / main / docker does not exist Deploy Spring Cloud project with docker , some code in the pom.xml: &lt;bui...
解决办法如下 openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem 这是由于缺少证书导致的 解决原理: 生成自签名证书openssl,创建一个有效期为 365 天的证书,并将密钥和证书数据写入同一文件。
错误描述:在执行maven install的时候有时会出现 The request ed profile “pom.xml” could not be activated because it does not exist 的错误 解决办法:在 项目 中单击右键 --属性 --maven,将此处清空保存即可