简体   繁体   English

Fabric8:无法执行目标-docker:build

[英]Fabric8: Fail to execute goal - docker:build

I´m trying to build this project from Spring Guru repository https://github.com/springframeworkguru/spring-boot-docker/tree/docker-multiple-containers 我正在尝试从Spring Guru存储库https://github.com/springframeworkguru/spring-boot-docker/tree/docker-multiple-containers构建这个项目

It is a tutorial for Docker and Spring integration. 这是有关Docker和Spring集成的教程。 However, I´m getting this error message when building the project with "clean package docker:build" 但是,使用“ clean package docker:build”构建项目时,我收到此错误消息

Failed to execute goal io.fabric8:docker-maven-plugin:0.20.0:build (default-cli) on project spring-boot-docker: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.20.0:build failed: An API incompatibility was encountered while executing io.fabric8:docker-maven-plugin:0.20.0:build: java.lang.UnsatisfiedLinkError: unknown

I´ve been running docker on a Winddws 10 Pro and building the Spring project with the latest IntelliJ Ultimate. 我一直在Winddws 10 Pro上运行docker,并使用最新的IntelliJ Ultimate构建Spring项目。

You might be using maven version 3.5.3. 您可能正在使用Maven版本3.5.3。 Please download external maven version 3.5.4 and add in your IDE. 请下载外部Maven版本3.5.4并添加到您的IDE中。

And while running "clean package docker:build" select the above latest added maven . 在运行“ clean package docker:build”时,选择上面最新添加的maven。 It will be there in project's Run As -> Run Configurations -> Maven Runtime 它将存在于项目的“运行方式”->“运行配置”->“ Maven运行时”中

Also In your pom.xml use version 0.26.0 instead of 0.20.0 for docker-maven-plugin. 另外在pom.xml中,将docker-maven-plugin使用版本0.26.0而不是0.20.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM