|
|
|
|
@ -147,33 +147,6 @@ |
|
|
|
|
<fork>true</fork><!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart --> |
|
|
|
|
</configuration> |
|
|
|
|
</plugin> |
|
|
|
|
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> |
|
|
|
|
<configuration> <delimiters> <delimiter>@</delimiter> </delimiters> <useDefaultDelimiters>false</useDefaultDelimiters> |
|
|
|
|
</configuration> </plugin> --> |
|
|
|
|
<plugin> |
|
|
|
|
<groupId>io.fabric8</groupId> |
|
|
|
|
<artifactId>docker-maven-plugin</artifactId> |
|
|
|
|
<version>0.26.1</version> |
|
|
|
|
<configuration> |
|
|
|
|
<dockerHost>tcp://demo.stylefeng.cn:2376</dockerHost> |
|
|
|
|
<certPath>_dockerCerts</certPath> |
|
|
|
|
<images> |
|
|
|
|
<image> |
|
|
|
|
<alias>service</alias> |
|
|
|
|
<name>stylefeng/${project.artifactId}:latest</name> |
|
|
|
|
<build> |
|
|
|
|
<from>java:8</from> |
|
|
|
|
<assembly> |
|
|
|
|
<descriptor>docker-assembly.xml</descriptor> |
|
|
|
|
</assembly> |
|
|
|
|
<cmd> |
|
|
|
|
<shell>java -jar /maven/${project.artifactId}.jar</shell> |
|
|
|
|
</cmd> |
|
|
|
|
</build> |
|
|
|
|
</image> |
|
|
|
|
</images> |
|
|
|
|
</configuration> |
|
|
|
|
</plugin> |
|
|
|
|
<plugin> |
|
|
|
|
<groupId>org.springframework.boot</groupId> |
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId> |
|
|
|
|
|