pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.3</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.caimei</groupId>
  12. <artifactId>www</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>www</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <!--maven.build.timestamp保存了maven编译时间戳-->
  19. <timestamp>${maven.build.timestamp}</timestamp>
  20. <!--指定时间格式-->
  21. <maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-webflux</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>mysql</groupId>
  34. <artifactId>mysql-connector-java</artifactId>
  35. <scope>runtime</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.mybatis.spring.boot</groupId>
  39. <artifactId>mybatis-spring-boot-starter</artifactId>
  40. <version>2.1.1</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-cache</artifactId>
  45. </dependency>
  46. <!-- redis依赖包 -->
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-data-redis</artifactId>
  50. <exclusions>
  51. <exclusion>
  52. <groupId>io.lettuce</groupId>
  53. <artifactId>lettuce-core</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. <dependency>
  58. <groupId>redis.clients</groupId>
  59. <artifactId>jedis</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-devtools</artifactId>
  64. <scope>runtime</scope>
  65. <optional>true</optional>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.projectlombok</groupId>
  69. <artifactId>lombok</artifactId>
  70. <optional>true</optional>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-test</artifactId>
  75. <scope>test</scope>
  76. <exclusions>
  77. <exclusion>
  78. <groupId>org.junit.vintage</groupId>
  79. <artifactId>junit-vintage-engine</artifactId>
  80. </exclusion>
  81. </exclusions>
  82. </dependency>
  83. <dependency>
  84. <groupId>io.projectreactor</groupId>
  85. <artifactId>reactor-test</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>junit</groupId>
  90. <artifactId>junit</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.github.pagehelper</groupId>
  95. <artifactId>pagehelper-spring-boot-starter</artifactId>
  96. <version>1.2.13</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.alibaba</groupId>
  100. <artifactId>fastjson</artifactId>
  101. <version>1.2.6</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>commons-codec</groupId>
  105. <artifactId>commons-codec</artifactId>
  106. <version>${commons-codec.version}</version>
  107. </dependency>
  108. <!--手机短信-->
  109. <dependency>
  110. <groupId>caimei</groupId>
  111. <artifactId>smsClient</artifactId>
  112. <version>1.0</version>
  113. </dependency>
  114. <!--对象存储oss-->
  115. <dependency>
  116. <groupId>com.aliyun.oss</groupId>
  117. <artifactId>aliyun-sdk-oss</artifactId>
  118. <version>3.10.2</version>
  119. </dependency>
  120. <!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
  121. <dependency>
  122. <groupId>commons-io</groupId>
  123. <artifactId>commons-io</artifactId>
  124. <version>2.8.0</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.jsoup</groupId>
  128. <artifactId>jsoup</artifactId>
  129. <version>1.11.2</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.commons</groupId>
  133. <artifactId>commons-lang3</artifactId>
  134. <version>3.3.2</version>
  135. </dependency>
  136. </dependencies>
  137. <profiles>
  138. <profile>
  139. <id>dev</id>
  140. <properties>
  141. <!-- 环境标识,需要与配置文件的名称相对应 -->
  142. <activatedProperties>dev</activatedProperties>
  143. </properties>
  144. <activation>
  145. <!-- 默认环境 -->
  146. <activeByDefault>true</activeByDefault>
  147. </activation>
  148. </profile>
  149. <profile>
  150. <id>beta</id>
  151. <properties>
  152. <activatedProperties>beta</activatedProperties>
  153. </properties>
  154. </profile>
  155. <profile>
  156. <id>prod</id>
  157. <properties>
  158. <activatedProperties>prod</activatedProperties>
  159. </properties>
  160. </profile>
  161. </profiles>
  162. <build>
  163. <resources>
  164. <!-- 配置文件路径 -->
  165. <resource>
  166. <!-- 这里对应项目存放配置文件的目录-->
  167. <directory>src/main/resources</directory>
  168. <!-- 开启filtering功能 -->
  169. <filtering>true</filtering>
  170. </resource>
  171. <resource>
  172. <directory>src/main/resources/config/${activatedProperties}</directory>
  173. <filtering>true</filtering>
  174. </resource>
  175. </resources>
  176. <plugins>
  177. <plugin>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-maven-plugin</artifactId>
  180. <configuration>
  181. <!-- springboot启动类目录 -->
  182. <mainClass>com.caimei.www.WwwApplication</mainClass>
  183. </configuration>
  184. <executions>
  185. <execution>
  186. <goals>
  187. <!-- 创建一个自动可执行的jar或war文件 -->
  188. <goal>repackage</goal>
  189. </goals>
  190. </execution>
  191. </executions>
  192. </plugin>
  193. </plugins>
  194. </build>
  195. </project>