123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>cn.stylefeng</groupId>
- <artifactId>guns-separation</artifactId>
- <version>1.1.0</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
- <artifactId>guns-main</artifactId>
- <packaging>jar</packaging>
- <dependencies>
- <dependency>
- <groupId>cn.stylefeng</groupId>
- <artifactId>guns-system</artifactId>
- <version>1.1.0</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>guns-separation</finalName>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <!-- 如果没有该项配置,则devtools不会起作用,即应用不会restart -->
- <fork>true</fork>
- </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}-advanced: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>
- </plugins>
- </build>
- </project>
|