pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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-user-app</artifactId>
  12. <description>
  13. 用户APP接口
  14. </description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  19. </dependency>
  20. <!-- spring-boot-devtools -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-devtools</artifactId>
  24. <optional>true</optional> <!-- 表示依赖不会传递 -->
  25. </dependency>
  26. <!-- swagger2-->
  27. <dependency>
  28. <groupId>io.springfox</groupId>
  29. <artifactId>springfox-swagger2</artifactId>
  30. </dependency>
  31. <!-- swagger2-UI-->
  32. <dependency>
  33. <groupId>io.springfox</groupId>
  34. <artifactId>springfox-swagger-ui</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.github.xiaoymin</groupId>
  38. <artifactId>swagger-bootstrap-ui</artifactId>
  39. <version>1.9.3</version>
  40. </dependency>
  41. <!-- Mysql驱动包 -->
  42. <dependency>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. </dependency>
  46. <!-- SpringBoot Web容器 -->
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-web</artifactId>
  50. </dependency>
  51. <!-- SpringBoot 拦截器 -->
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-aop</artifactId>
  55. </dependency>
  56. <!-- 阿里数据库连接池 -->
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>druid-spring-boot-starter</artifactId>
  60. </dependency>
  61. <!-- 验证码 -->
  62. <dependency>
  63. <groupId>com.github.penggle</groupId>
  64. <artifactId>kaptcha</artifactId>
  65. <exclusions>
  66. <exclusion>
  67. <artifactId>javax.servlet-api</artifactId>
  68. <groupId>javax.servlet</groupId>
  69. </exclusion>
  70. </exclusions>
  71. </dependency>
  72. <!-- 系统模块-->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-security</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.github.tencentyun</groupId>
  79. <artifactId>tls-sig-api-v2</artifactId>
  80. <version>2.0</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.github.javen205</groupId>
  84. <artifactId>IJPay-All</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.alipay.sdk</groupId>
  88. <artifactId>alipay-sdk-java</artifactId>
  89. <version>4.8.62.ALL</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.google.zxing</groupId>
  93. <artifactId>javase</artifactId>
  94. <version>3.4.1</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.slf4j</groupId>
  98. <artifactId>slf4j-api</artifactId>
  99. <version>1.7.30</version>
  100. <scope>provided</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.fs</groupId>
  104. <artifactId>fs-service-system</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. </plugins>
  156. <finalName>${project.artifactId}</finalName>
  157. </build>
  158. </project>