pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. <!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
  50. <dependency>
  51. <groupId>commons-io</groupId>
  52. <artifactId>commons-io</artifactId>
  53. <version>2.5</version>
  54. </dependency>
  55. <!--fastdfs start-->
  56. <dependency>
  57. <groupId>org.csource</groupId>
  58. <artifactId>fastdfs_lib</artifactId>
  59. </dependency>
  60. <!--fastdfs end-->
  61. <!--fastdfs start-->
  62. <dependency>
  63. <groupId>org.csource</groupId>
  64. <artifactId>fastdfs_lib</artifactId>
  65. <version>${version.fastdfs}</version>
  66. </dependency>
  67. <!--fastdfs end-->
  68. </dependencies>
  69. <build>
  70. <finalName>guns-separation</finalName>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <goals>
  78. <goal>repackage</goal>
  79. </goals>
  80. </execution>
  81. </executions>
  82. <configuration>
  83. <!-- 如果没有该项配置,则devtools不会起作用,即应用不会restart -->
  84. <fork>true</fork>
  85. </configuration>
  86. </plugin>
  87. <plugin>
  88. <groupId>io.fabric8</groupId>
  89. <artifactId>docker-maven-plugin</artifactId>
  90. <version>0.26.1</version>
  91. <configuration>
  92. <dockerHost>tcp://demo.stylefeng.cn:2376</dockerHost>
  93. <certPath>_dockerCerts</certPath>
  94. <images>
  95. <image>
  96. <alias>service</alias>
  97. <name>stylefeng/${project.artifactId}-advanced:latest</name>
  98. <build>
  99. <from>java:8</from>
  100. <assembly>
  101. <descriptor>docker-assembly.xml</descriptor>
  102. </assembly>
  103. <cmd>
  104. <shell>java -jar /maven/${project.artifactId}.jar</shell>
  105. </cmd>
  106. </build>
  107. </image>
  108. </images>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. </project>