<!--新增的docker maven插件-->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.0.0</version>
<!--docker镜像相关的配置信息-->
<configuration>
<pushImage>false</pushImage>
<imageName>registry.cn-beijing.aliyuncs.com/xxxx-xxxx/${project.artifactId}:1.0</imageName>
<serverId>tmci-docker-registry</serverId>
<registryUrl>registry.cn-beijing.aliyuncs.com</registryUrl>
<!--Dockerfile文件所在目录-->
<dockerDirectory>${project.basedir}</dockerDirectory>
</configuration>
<!--maven build完成后自动执行docker build-->
<executions>
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>