pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.3.4.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>org.example</groupId>
  13. <artifactId>caimei365-hehe</artifactId>
  14. <version>1.0-SNAPSHOT</version>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <!--maven.build.timestamp保存了maven编译时间戳-->
  18. <timestamp>${maven.build.timestamp}</timestamp>
  19. <!--指定时间格式-->
  20. <maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-webflux</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>mysql</groupId>
  33. <artifactId>mysql-connector-java</artifactId>
  34. <scope>runtime</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.mybatis.spring.boot</groupId>
  38. <artifactId>mybatis-spring-boot-starter</artifactId>
  39. <version>2.1.1</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-cache</artifactId>
  44. </dependency>
  45. <!-- redis依赖包 -->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-data-redis</artifactId>
  49. <exclusions>
  50. <exclusion>
  51. <groupId>io.lettuce</groupId>
  52. <artifactId>lettuce-core</artifactId>
  53. </exclusion>
  54. </exclusions>
  55. </dependency>
  56. <dependency>
  57. <groupId>redis.clients</groupId>
  58. <artifactId>jedis</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-devtools</artifactId>
  63. <scope>runtime</scope>
  64. <optional>true</optional>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.projectlombok</groupId>
  68. <artifactId>lombok</artifactId>
  69. <optional>true</optional>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-test</artifactId>
  74. <scope>test</scope>
  75. <exclusions>
  76. <exclusion>
  77. <groupId>org.junit.vintage</groupId>
  78. <artifactId>junit-vintage-engine</artifactId>
  79. </exclusion>
  80. </exclusions>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.projectreactor</groupId>
  84. <artifactId>reactor-test</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>junit</groupId>
  89. <artifactId>junit</artifactId>
  90. <scope>test</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.github.pagehelper</groupId>
  94. <artifactId>pagehelper-spring-boot-starter</artifactId>
  95. <version>1.2.13</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.alibaba</groupId>
  99. <artifactId>fastjson</artifactId>
  100. <version>1.2.6</version>
  101. </dependency>
  102. <!--knife4j接口文档-->
  103. <dependency>
  104. <groupId>com.github.xiaoymin</groupId>
  105. <artifactId>knife4j-spring-boot-starter</artifactId>
  106. <version>3.0.2</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.httpcomponents</groupId>
  110. <artifactId>httpclient</artifactId>
  111. <version>4.5.7</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.squareup.okhttp3</groupId>
  115. <artifactId>okhttp</artifactId>
  116. <version>3.8.1</version>
  117. </dependency>
  118. <!--freemarker 模板引擎-->
  119. <dependency>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-starter-freemarker</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.commons</groupId>
  125. <artifactId>commons-lang3</artifactId>
  126. <version>3.3.2</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>commons-lang</groupId>
  130. <artifactId>commons-lang</artifactId>
  131. <version>2.6</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>commons-beanutils</groupId>
  135. <artifactId>commons-beanutils</artifactId>
  136. <version>1.8.3</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>commons-httpclient</groupId>
  140. <artifactId>commons-httpclient</artifactId>
  141. <version>3.1</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.bouncycastle</groupId>
  145. <artifactId>bcmail-jdk15</artifactId>
  146. <version>1.46</version>
  147. </dependency>
  148. <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
  149. <dependency>
  150. <groupId>com.google.guava</groupId>
  151. <artifactId>guava</artifactId>
  152. <version>29.0-jre</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.github.tobato</groupId>
  156. <artifactId>fastdfs-client</artifactId>
  157. <version>1.27.2</version>
  158. </dependency>
  159. </dependencies>
  160. <profiles>
  161. <profile>
  162. <id>dev</id>
  163. <properties>
  164. <!-- 环境标识,需要与配置文件的名称相对应 -->
  165. <activatedProperties>dev</activatedProperties>
  166. </properties>
  167. <activation>
  168. <!-- 默认环境 -->
  169. <activeByDefault>true</activeByDefault>
  170. </activation>
  171. </profile>
  172. <profile>
  173. <id>beta</id>
  174. <properties>
  175. <activatedProperties>beta</activatedProperties>
  176. </properties>
  177. </profile>
  178. <profile>
  179. <id>prod</id>
  180. <properties>
  181. <activatedProperties>prod</activatedProperties>
  182. </properties>
  183. </profile>
  184. </profiles>
  185. <build>
  186. <finalName>${project.artifactId}</finalName>
  187. <resources>
  188. <!-- 配置文件路径 -->
  189. <resource>
  190. <!-- 这里对应项目存放配置文件的目录-->
  191. <directory>src/main/resources</directory>
  192. <!-- 开启filtering功能 -->
  193. <filtering>true</filtering>
  194. </resource>
  195. <resource>
  196. <directory>src/main/resources/config/${activatedProperties}</directory>
  197. <filtering>true</filtering>
  198. </resource>
  199. </resources>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-maven-plugin</artifactId>
  204. <configuration>
  205. <!-- springboot启动类目录 -->
  206. <mainClass>com.caimei.HeHeApplication</mainClass>
  207. </configuration>
  208. <executions>
  209. <execution>
  210. <goals>
  211. <!-- 创建一个自动可执行的jar或war文件 -->
  212. <goal>repackage</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. </plugins>
  218. </build>
  219. </project>