pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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.4.3</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>com.caimei365.order</groupId>
  13. <artifactId>caimei365-cloud-order</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>caimei365-cloud-order</name>
  16. <description>采美365微服务-订单服务</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <spring-cloud.version>2020.0.2</spring-cloud.version>
  20. </properties>
  21. <dependencyManagement>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.cloud</groupId>
  25. <artifactId>spring-cloud-dependencies</artifactId>
  26. <version>${spring-cloud.version}</version>
  27. <type>pom</type>
  28. <scope>import</scope>
  29. </dependency>
  30. </dependencies>
  31. </dependencyManagement>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-webflux</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.cloud</groupId>
  39. <artifactId>spring-cloud-starter</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-starter-config</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.cloud</groupId>
  47. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.cloud</groupId>
  51. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.cloud</groupId>
  55. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  56. </dependency>
  57. <!-- mysql -->
  58. <dependency>
  59. <groupId>mysql</groupId>
  60. <artifactId>mysql-connector-java</artifactId>
  61. <scope>runtime</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.mybatis.spring.boot</groupId>
  65. <artifactId>mybatis-spring-boot-starter</artifactId>
  66. <version>2.1.4</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <optional>true</optional>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.github.pagehelper</groupId>
  75. <artifactId>pagehelper-spring-boot-starter</artifactId>
  76. <version>1.2.5</version>
  77. <exclusions>
  78. <exclusion>
  79. <artifactId>mybatis-spring-boot-starter</artifactId>
  80. <groupId>org.mybatis.spring.boot</groupId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. <!-- redis依赖包 -->
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-data-redis</artifactId>
  88. <exclusions>
  89. <exclusion>
  90. <groupId>io.lettuce</groupId>
  91. <artifactId>lettuce-core</artifactId>
  92. </exclusion>
  93. </exclusions>
  94. </dependency>
  95. <dependency>
  96. <groupId>redis.clients</groupId>
  97. <artifactId>jedis</artifactId>
  98. </dependency>
  99. <!-- jwt -->
  100. <dependency>
  101. <groupId>com.auth0</groupId>
  102. <artifactId>java-jwt</artifactId>
  103. <version>3.14.0</version>
  104. </dependency>
  105. <!-- aop -->
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-starter-aop</artifactId>
  109. </dependency>
  110. <!-- fastjson -->
  111. <dependency>
  112. <groupId>com.alibaba</groupId>
  113. <artifactId>fastjson</artifactId>
  114. <version>1.2.75</version>
  115. </dependency>
  116. <!-- knife4j:swagger增强-->
  117. <!-- https://doc.xiaominfo.com/knife4j/documentation/get_start.html -->
  118. <dependency>
  119. <groupId>com.github.xiaoymin</groupId>
  120. <artifactId>knife4j-spring-boot-starter</artifactId>
  121. <version>3.0.2</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>io.springfox</groupId>
  125. <artifactId>springfox-swagger-ui</artifactId>
  126. <version>3.0.0</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-starter-test</artifactId>
  131. <scope>test</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>io.projectreactor</groupId>
  135. <artifactId>reactor-test</artifactId>
  136. <scope>test</scope>
  137. </dependency>
  138. </dependencies>
  139. <profiles>
  140. <profile>
  141. <id>dev</id>
  142. <properties>
  143. <!-- 环境标识,需要与配置文件的名称相对应 -->
  144. <activatedProperties>dev</activatedProperties>
  145. </properties>
  146. <activation>
  147. <!-- 默认环境 -->
  148. <activeByDefault>true</activeByDefault>
  149. </activation>
  150. </profile>
  151. <profile>
  152. <id>beta</id>
  153. <properties>
  154. <activatedProperties>beta</activatedProperties>
  155. </properties>
  156. </profile>
  157. <profile>
  158. <id>prod</id>
  159. <properties>
  160. <activatedProperties>prod</activatedProperties>
  161. </properties>
  162. </profile>
  163. </profiles>
  164. <build>
  165. <finalName>${project.artifactId}</finalName>
  166. <resources>
  167. <resource>
  168. <directory>src/main/resources</directory>
  169. <!--可以在此配置过滤文件 -->
  170. <includes>
  171. <include>**/*.yml</include>
  172. <include>**/*.xml</include>
  173. </includes>
  174. <!--开启filtering功能 -->
  175. <filtering>true</filtering>
  176. </resource>
  177. </resources>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.springframework.boot</groupId>
  181. <artifactId>spring-boot-maven-plugin</artifactId>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </project>