运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

【Exception】[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.14:build (default-cli)

运维开发网 https://www.qedev.com 2020-04-17 19:21 出处:网络 作者:运维开发网整理
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.14:build (default-cli) on project operate-service-ming: Exception caught: ADD failed: stat /var/lib/docker/tmp/docker-builder65885491

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.14:build (default-cli) on project operate-service-ming: Exception caught: ADD failed: stat /var/lib/docker/tmp/docker-builder658854914/target/xxx-xxx-xxx-1.0.jar: no such file or directory -> [Help 1]

 

原因:

jar包路径设置错误

FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD target/xxx-xxx-xxx-1.0.jar app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

解决:

修改dcokerFile中jar的路径如下

FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD xxx-xxx-xxx-1.0.jar app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号