No plugin found for prefix 'docker' in the current project and in the plugin groups
add the below code to your maven conf/setting.xml
:
<pluginGroups> <pluginGroup>com.spotify</pluginGroup> </pluginGroups>
if you want to get more detail, pls refer to https://github.com/spotify/docker-maven-plugin/issues/322
If you are using dockerfile maven plugin, you need to change docker:build to dockerfile:build and docker:push to dockerfile:push
For me worked in a different way, if you follow the maven plugin pattern {prefix}-maven-plugin
... which in this case is dockerfile-maven-plugin
, you should be able to run it with: mvn package dockerfile:build
.I'm using Maven: 3, Spring Boot 2 and Docker maven plugin 1.3.4