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

image  image

mvn docker:help –Ddetail | less

mvn docker:build –DskipDocker=false

image

 

 

 

<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>

 

posted @ 2018-05-24 13:06  xlongwei  阅读(247)  评论(0编辑  收藏  举报
xlongwei