pom.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>cn.stylefeng</groupId>
  8. <artifactId>guns-separation</artifactId>
  9. <version>1.1.0</version>
  10. <relativePath>../pom.xml</relativePath>
  11. </parent>
  12. <artifactId>guns-main</artifactId>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <dependency>
  16. <groupId>cn.stylefeng</groupId>
  17. <artifactId>guns-system</artifactId>
  18. <version>1.1.0</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-test</artifactId>
  23. <scope>test</scope>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.json</groupId>
  27. <artifactId>json</artifactId>
  28. <version>20160212</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-data-jpa</artifactId>
  33. </dependency>
  34. </dependencies>
  35. <build>
  36. <finalName>guns-separation</finalName>
  37. <plugins>
  38. <plugin>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-maven-plugin</artifactId>
  41. <executions>
  42. <execution>
  43. <goals>
  44. <goal>repackage</goal>
  45. </goals>
  46. </execution>
  47. </executions>
  48. <configuration>
  49. <!-- 如果没有该项配置,则devtools不会起作用,即应用不会restart -->
  50. <fork>true</fork>
  51. </configuration>
  52. </plugin>
  53. <plugin>
  54. <groupId>io.fabric8</groupId>
  55. <artifactId>docker-maven-plugin</artifactId>
  56. <version>0.26.1</version>
  57. <configuration>
  58. <dockerHost>tcp://demo.stylefeng.cn:2376</dockerHost>
  59. <certPath>_dockerCerts</certPath>
  60. <images>
  61. <image>
  62. <alias>service</alias>
  63. <name>stylefeng/${project.artifactId}-advanced:latest</name>
  64. <build>
  65. <from>java:8</from>
  66. <assembly>
  67. <descriptor>docker-assembly.xml</descriptor>
  68. </assembly>
  69. <cmd>
  70. <shell>java -jar /maven/${project.artifactId}.jar</shell>
  71. </cmd>
  72. </build>
  73. </image>
  74. </images>
  75. </configuration>
  76. </plugin>
  77. </plugins>
  78. </build>
  79. </project>