pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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-company</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-devtools</artifactId>
  16. <optional>true</optional> <!-- 表示依赖不会传递 -->
  17. </dependency>
  18. <!-- swagger2-->
  19. <dependency>
  20. <groupId>io.springfox</groupId>
  21. <artifactId>springfox-swagger2</artifactId>
  22. </dependency>
  23. <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
  24. <dependency>
  25. <groupId>io.swagger</groupId>
  26. <artifactId>swagger-annotations</artifactId>
  27. <version>1.5.21</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>io.swagger</groupId>
  31. <artifactId>swagger-models</artifactId>
  32. <version>1.5.21</version>
  33. </dependency>
  34. <!-- swagger2-UI-->
  35. <dependency>
  36. <groupId>io.springfox</groupId>
  37. <artifactId>springfox-swagger-ui</artifactId>
  38. </dependency>
  39. <!-- Mysql驱动包 -->
  40. <dependency>
  41. <groupId>mysql</groupId>
  42. <artifactId>mysql-connector-java</artifactId>
  43. </dependency>
  44. <!-- SpringBoot Web容器 -->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-web</artifactId>
  48. </dependency>
  49. <!-- SpringBoot 拦截器 -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-aop</artifactId>
  53. </dependency>
  54. <!-- spring security 安全认证 -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-security</artifactId>
  58. </dependency>
  59. <!-- 阿里数据库连接池 -->
  60. <dependency>
  61. <groupId>com.alibaba</groupId>
  62. <artifactId>druid-spring-boot-starter</artifactId>
  63. </dependency>
  64. <!-- 验证码 -->
  65. <dependency>
  66. <groupId>com.github.penggle</groupId>
  67. <artifactId>kaptcha</artifactId>
  68. <exclusions>
  69. <exclusion>
  70. <artifactId>javax.servlet-api</artifactId>
  71. <groupId>javax.servlet</groupId>
  72. </exclusion>
  73. </exclusions>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.github.javen205</groupId>
  77. <artifactId>IJPay-All</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.alipay.sdk</groupId>
  81. <artifactId>alipay-sdk-java</artifactId>
  82. <version>4.8.62.ALL</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.google.zxing</groupId>
  86. <artifactId>javase</artifactId>
  87. <version>3.4.1</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.slf4j</groupId>
  91. <artifactId>slf4j-api</artifactId>
  92. <version>1.7.30</version>
  93. <scope>provided</scope>
  94. </dependency>
  95. <!-- 开源多维码生成工具 -->
  96. <dependency>
  97. <groupId>com.github.xkzhangsan</groupId>
  98. <artifactId>xk-time</artifactId>
  99. <version>3.2.1</version>
  100. </dependency>
  101. <!-- 系统模块-->
  102. <dependency>
  103. <groupId>com.fs</groupId>
  104. <artifactId>fs-service-system</artifactId>
  105. </dependency>
  106. <!-- websocket模块-->
  107. <!-- <dependency>-->
  108. <!-- <groupId>com.fs</groupId>-->
  109. <!-- <artifactId>fs-socket</artifactId>-->
  110. <!-- </dependency>-->
  111. <dependency>
  112. <groupId>commons-codec</groupId>
  113. <artifactId>commons-codec</artifactId>
  114. <version>1.11</version>
  115. </dependency>
  116. <!-- WebSocket -->
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-websocket</artifactId>
  120. </dependency>
  121. </dependencies>
  122. <build>
  123. <plugins>
  124. <plugin>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-maven-plugin</artifactId>
  127. <version>2.1.1.RELEASE</version>
  128. <configuration>
  129. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  130. </configuration>
  131. <executions>
  132. <execution>
  133. <goals>
  134. <goal>repackage</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-war-plugin</artifactId>
  142. <version>3.1.0</version>
  143. <configuration>
  144. <failOnMissingWebXml>false</failOnMissingWebXml>
  145. <warName>${project.artifactId}</warName>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <groupId>com.spotify</groupId>
  150. <artifactId>docker-maven-plugin</artifactId>
  151. <version>1.0.0</version>
  152. <configuration>
  153. <imageName>${project.artifactId}:${project.version}</imageName>
  154. <baseImage>kdvolder/jdk8</baseImage>
  155. <maintainer>docker_maven docker_maven@email.com</maintainer>
  156. <workdir>/</workdir>
  157. <cmd>["java", "-version"]</cmd>
  158. <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
  159. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  160. <resources>
  161. <resource>
  162. <targetPath>/</targetPath>
  163. <directory>${project.build.directory}</directory>
  164. <include>${project.build.finalName}.jar</include>
  165. </resource>
  166. </resources>
  167. <dockerHost>http://8.140.143.122:2375</dockerHost>
  168. </configuration>
  169. </plugin>
  170. </plugins>
  171. <finalName>${project.artifactId}</finalName>
  172. </build>
  173. </project>