pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <parent>
  6. <artifactId>fs</artifactId>
  7. <groupId>com.fs</groupId>
  8. <version>1.1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>fs-live-socket</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  20. </dependency>
  21. <!-- spring-boot-devtools -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-devtools</artifactId>
  25. <optional>true</optional> <!-- 表示依赖不会传递 -->
  26. </dependency>
  27. <!-- swagger2-->
  28. <dependency>
  29. <groupId>io.springfox</groupId>
  30. <artifactId>springfox-swagger2</artifactId>
  31. </dependency>
  32. <!-- swagger2-UI-->
  33. <dependency>
  34. <groupId>io.springfox</groupId>
  35. <artifactId>springfox-swagger-ui</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.github.xiaoymin</groupId>
  39. <artifactId>swagger-bootstrap-ui</artifactId>
  40. <version>1.9.3</version>
  41. </dependency>
  42. <!-- Mysql驱动包 -->
  43. <dependency>
  44. <groupId>mysql</groupId>
  45. <artifactId>mysql-connector-java</artifactId>
  46. </dependency>
  47. <!-- SpringBoot Web容器 -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-web</artifactId>
  51. </dependency>
  52. <!-- SpringBoot 拦截器 -->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-aop</artifactId>
  56. </dependency>
  57. <!-- 阿里数据库连接池 -->
  58. <dependency>
  59. <groupId>com.alibaba</groupId>
  60. <artifactId>druid-spring-boot-starter</artifactId>
  61. </dependency>
  62. <!-- 系统模块-->
  63. <dependency>
  64. <groupId>com.fs</groupId>
  65. <artifactId>fs-service-system</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-security</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.github.tencentyun</groupId>
  73. <artifactId>tls-sig-api-v2</artifactId>
  74. <version>2.0</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.github.javen205</groupId>
  78. <artifactId>IJPay-All</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.google.zxing</groupId>
  82. <artifactId>javase</artifactId>
  83. <version>3.4.1</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.slf4j</groupId>
  87. <artifactId>slf4j-api</artifactId>
  88. <version>1.7.30</version>
  89. <scope>provided</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-test</artifactId>
  94. <scope>test</scope>
  95. </dependency>
  96. <!-- Redisson -->
  97. <dependency>
  98. <groupId>org.redisson</groupId>
  99. <artifactId>redisson</artifactId>
  100. <version>3.13.6</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-websocket</artifactId>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <plugins>
  109. <plugin>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-maven-plugin</artifactId>
  112. <version>2.1.1.RELEASE</version>
  113. <configuration>
  114. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  115. </configuration>
  116. <executions>
  117. <execution>
  118. <goals>
  119. <goal>repackage</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-war-plugin</artifactId>
  127. <version>3.1.0</version>
  128. <configuration>
  129. <failOnMissingWebXml>false</failOnMissingWebXml>
  130. <warName>${project.artifactId}</warName>
  131. </configuration>
  132. </plugin>
  133. <plugin>
  134. <groupId>com.spotify</groupId>
  135. <artifactId>docker-maven-plugin</artifactId>
  136. <version>1.0.0</version>
  137. <configuration>
  138. <imageName>${project.artifactId}:${project.version}</imageName>
  139. <baseImage>kdvolder/jdk8</baseImage>
  140. <maintainer>docker_maven docker_maven@email.com</maintainer>
  141. <workdir>/</workdir>
  142. <cmd>["java", "-version"]</cmd>
  143. <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
  144. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  145. <resources>
  146. <resource>
  147. <targetPath>/</targetPath>
  148. <directory>${project.build.directory}</directory>
  149. <include>${project.build.finalName}.jar</include>
  150. </resource>
  151. </resources>
  152. <dockerHost>http://8.140.143.122:2375</dockerHost>
  153. </configuration>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-compiler-plugin</artifactId>
  158. <configuration>
  159. <compilerArgs>
  160. <arg>-parameters</arg>
  161. </compilerArgs>
  162. </configuration>
  163. </plugin>
  164. </plugins>
  165. <finalName>${project.artifactId}</finalName>
  166. </build>
  167. </project>