pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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.caimei365.tools</groupId>
  12. <artifactId>caimei365-cloud-tools</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>caimei365-cloud-tools</name>
  15. <description>采美365微服务-工具服务</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <spring-cloud.version>2020.0.2</spring-cloud.version>
  19. </properties>
  20. <dependencyManagement>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.cloud</groupId>
  24. <artifactId>spring-cloud-dependencies</artifactId>
  25. <version>${spring-cloud.version}</version>
  26. <type>pom</type>
  27. <scope>import</scope>
  28. </dependency>
  29. </dependencies>
  30. </dependencyManagement>
  31. <dependencies>
  32. <!--实体类校验注解-->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-validation</artifactId>
  36. </dependency>
  37. <!--邮件依赖-->
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-mail</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-web</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.cloud</groupId>
  48. <artifactId>spring-cloud-starter</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.cloud</groupId>
  52. <artifactId>spring-cloud-starter-config</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.cloud</groupId>
  56. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.cloud</groupId>
  60. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.cloud</groupId>
  68. <artifactId>spring-cloud-starter-openfeign</artifactId>
  69. </dependency>
  70. <!-- mongo -->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  74. </dependency>
  75. <!-- mysql -->
  76. <dependency>
  77. <groupId>mysql</groupId>
  78. <artifactId>mysql-connector-java</artifactId>
  79. <scope>runtime</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.mybatis.spring.boot</groupId>
  83. <artifactId>mybatis-spring-boot-starter</artifactId>
  84. <version>2.1.4</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.projectlombok</groupId>
  88. <artifactId>lombok</artifactId>
  89. <optional>true</optional>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.github.pagehelper</groupId>
  93. <artifactId>pagehelper-spring-boot-starter</artifactId>
  94. <version>1.2.5</version>
  95. <exclusions>
  96. <exclusion>
  97. <artifactId>mybatis-spring-boot-starter</artifactId>
  98. <groupId>org.mybatis.spring.boot</groupId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. <!-- 快递100 SDK -->
  103. <dependency>
  104. <groupId>com.github.kuaidi100-api</groupId>
  105. <artifactId>sdk</artifactId>
  106. <version>1.0.2</version>
  107. </dependency>
  108. <!-- redis依赖包 -->
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-data-redis</artifactId>
  112. <exclusions>
  113. <exclusion>
  114. <groupId>io.lettuce</groupId>
  115. <artifactId>lettuce-core</artifactId>
  116. </exclusion>
  117. </exclusions>
  118. </dependency>
  119. <dependency>
  120. <groupId>redis.clients</groupId>
  121. <artifactId>jedis</artifactId>
  122. </dependency>
  123. <!-- https://mvnrepository.com/artifact/com.github.tobato/fastdfs-client -->
  124. <dependency>
  125. <groupId>com.github.tobato</groupId>
  126. <artifactId>fastdfs-client</artifactId>
  127. <version>1.27.2</version>
  128. </dependency>
  129. <!--对象存储oss-->
  130. <dependency>
  131. <groupId>com.aliyun.oss</groupId>
  132. <artifactId>aliyun-sdk-oss</artifactId>
  133. <version>3.12.0</version>
  134. </dependency>
  135. <!-- https://mvnrepository.com/artifact/org.apache.rocketmq/rocketmq-spring-boot-starter -->
  136. <!-- RocketMQ starter -->
  137. <dependency>
  138. <groupId>org.apache.rocketmq</groupId>
  139. <artifactId>rocketmq-spring-boot-starter</artifactId>
  140. <version>2.2.0</version>
  141. </dependency>
  142. <!-- redis依赖包 -->
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-starter-data-redis</artifactId>
  146. <exclusions>
  147. <exclusion>
  148. <groupId>io.lettuce</groupId>
  149. <artifactId>lettuce-core</artifactId>
  150. </exclusion>
  151. </exclusions>
  152. </dependency>
  153. <dependency>
  154. <groupId>redis.clients</groupId>
  155. <artifactId>jedis</artifactId>
  156. </dependency>
  157. <!-- knife4j:swagger增强-->
  158. <!-- https://doc.xiaominfo.com/knife4j/documentation/get_start.html -->
  159. <dependency>
  160. <groupId>com.github.xiaoymin</groupId>
  161. <artifactId>knife4j-spring-boot-starter</artifactId>
  162. <version>3.0.2</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>io.springfox</groupId>
  166. <artifactId>springfox-swagger-ui</artifactId>
  167. <version>3.0.0</version>
  168. </dependency>
  169. <!-- 登陆新后台用 -->
  170. <dependency>
  171. <groupId>io.jsonwebtoken</groupId>
  172. <artifactId>jjwt</artifactId>
  173. <version>0.9.1</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-starter-test</artifactId>
  178. <scope>test</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>io.projectreactor</groupId>
  182. <artifactId>reactor-test</artifactId>
  183. <scope>test</scope>
  184. </dependency>
  185. </dependencies>
  186. <profiles>
  187. <profile>
  188. <id>dev</id>
  189. <properties>
  190. <!-- 环境标识,需要与配置文件的名称相对应 -->
  191. <activatedProperties>dev</activatedProperties>
  192. </properties>
  193. <activation>
  194. <!-- 默认环境 -->
  195. <activeByDefault>true</activeByDefault>
  196. </activation>
  197. </profile>
  198. <profile>
  199. <id>beta</id>
  200. <properties>
  201. <activatedProperties>beta</activatedProperties>
  202. </properties>
  203. </profile>
  204. <profile>
  205. <id>prod</id>
  206. <properties>
  207. <activatedProperties>prod</activatedProperties>
  208. </properties>
  209. </profile>
  210. </profiles>
  211. <build>
  212. <finalName>${project.artifactId}</finalName>
  213. <resources>
  214. <resource>
  215. <directory>src/main/resources</directory>
  216. <!--可以在此配置过滤文件 -->
  217. <includes>
  218. <include>**/*.yml</include>
  219. <include>**/*.xml</include>
  220. </includes>
  221. <!--开启filtering功能 -->
  222. <filtering>true</filtering>
  223. </resource>
  224. </resources>
  225. <plugins>
  226. <plugin>
  227. <groupId>org.springframework.boot</groupId>
  228. <artifactId>spring-boot-maven-plugin</artifactId>
  229. </plugin>
  230. </plugins>
  231. </build>
  232. </project>