maven help:system
lifecycle:http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
bindings:http://maven.apache.org/ref/3.5.0/maven-core/default-bindings.html
mvn docker:help –Ddetail | less
mvn docker:build –DskipDocker=false
<skipDocker>true</skipDocker> <docker.plugin.version>0.4.13</docker.plugin.version> <docker.image.prefix>spring-boot-cloud</docker.image.prefix> <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>${docker.plugin.version}</version> <executions> <execution> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> <configuration> <imageName>${docker.image.prefix}/${project.artifactId}</imageName> <dockerDirectory>${project.basedir}/</dockerDirectory> <skipDocker>${skipDocker}</skipDocker> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>${project.build.finalName}.jar</include> </resource> </resources> </configuration> </plugin>