pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. <properties>
  7. <version.fastdfs>1.25</version.fastdfs>
  8. <version.fastdfs>1.2.17</version.fastdfs>
  9. </properties>
  10. <parent>
  11. <groupId>cn.stylefeng</groupId>
  12. <artifactId>guns-separation</artifactId>
  13. <version>1.1.0</version>
  14. <relativePath>../pom.xml</relativePath>
  15. </parent>
  16. <artifactId>guns-main</artifactId>
  17. <packaging>jar</packaging>
  18. <dependencies>
  19. <dependency>
  20. <groupId>cn.stylefeng</groupId>
  21. <artifactId>guns-system</artifactId>
  22. <version>1.1.0</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-test</artifactId>
  27. <scope>test</scope>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.json</groupId>
  31. <artifactId>json</artifactId>
  32. <version>20160212</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-data-jpa</artifactId>
  37. </dependency>
  38. <!-- 解决 Illegal DefaultValue null for parameter type integer 异常 -->
  39. <dependency>
  40. <groupId>io.swagger</groupId>
  41. <artifactId>swagger-annotations</artifactId>
  42. <version>1.5.21</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>io.swagger</groupId>
  46. <artifactId>swagger-models</artifactId>
  47. <version>1.5.21</version>
  48. </dependency>
  49. <!--fastdfs start-->
  50. <dependency>
  51. <groupId>org.csource</groupId>
  52. <artifactId>fastdfs_lib</artifactId>
  53. </dependency>
  54. <!--fastdfs end-->
  55. <!--fastdfs start-->
  56. <dependency>
  57. <groupId>org.csource</groupId>
  58. <artifactId>fastdfs_lib</artifactId>
  59. <version>${version.fastdfs}</version>
  60. </dependency>
  61. <!--fastdfs end-->
  62. </dependencies>
  63. <build>
  64. <finalName>guns-separation</finalName>
  65. <plugins>
  66. <plugin>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-maven-plugin</artifactId>
  69. <executions>
  70. <execution>
  71. <goals>
  72. <goal>repackage</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. <configuration>
  77. <!-- 如果没有该项配置,则devtools不会起作用,即应用不会restart -->
  78. <fork>true</fork>
  79. </configuration>
  80. </plugin>
  81. <plugin>
  82. <groupId>io.fabric8</groupId>
  83. <artifactId>docker-maven-plugin</artifactId>
  84. <version>0.26.1</version>
  85. <configuration>
  86. <dockerHost>tcp://demo.stylefeng.cn:2376</dockerHost>
  87. <certPath>_dockerCerts</certPath>
  88. <images>
  89. <image>
  90. <alias>service</alias>
  91. <name>stylefeng/${project.artifactId}-advanced:latest</name>
  92. <build>
  93. <from>java:8</from>
  94. <assembly>
  95. <descriptor>docker-assembly.xml</descriptor>
  96. </assembly>
  97. <cmd>
  98. <shell>java -jar /maven/${project.artifactId}.jar</shell>
  99. </cmd>
  100. </build>
  101. </image>
  102. </images>
  103. </configuration>
  104. </plugin>
  105. </plugins>
  106. </build>
  107. </project>