pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  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>com.caimei365</groupId>
  13. <artifactId>caimei-zplm-admin-api</artifactId>
  14. <version>0.0.1-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. <!-- &lt;!&ndash;-->
  24. <!-- 添加此依赖会导致跨域问题,用org.apache.tomcat.embed代替-->
  25. <!-- &ndash;&gt;-->
  26. <!-- <dependency>-->
  27. <!-- <groupId>org.springframework.boot</groupId>-->
  28. <!-- <artifactId>spring-boot-starter-web</artifactId>-->
  29. <!-- </dependency>-->
  30. <!-- <dependency>-->
  31. <!-- <groupId>org.springframework.boot</groupId>-->
  32. <!-- <artifactId>spring-boot-starter-thymeleaf</artifactId>-->
  33. <!-- </dependency>-->
  34. <!-- &lt;!&ndash;<dependency>-->
  35. <!-- <groupId>org.springframework.boot</groupId>-->
  36. <!-- <artifactId>spring-boot-starter-webflux</artifactId>-->
  37. <!-- </dependency>&ndash;&gt;-->
  38. <!-- <dependency>-->
  39. <!-- <groupId>mysql</groupId>-->
  40. <!-- <artifactId>mysql-connector-java</artifactId>-->
  41. <!-- <scope>runtime</scope>-->
  42. <!-- </dependency>-->
  43. <!-- <dependency>-->
  44. <!-- <groupId>org.mybatis.spring.boot</groupId>-->
  45. <!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
  46. <!-- <version>2.1.1</version>-->
  47. <!-- </dependency>-->
  48. <!-- <dependency>-->
  49. <!-- <groupId>org.springframework.boot</groupId>-->
  50. <!-- <artifactId>spring-boot-configuration-processor</artifactId>-->
  51. <!-- <optional>true</optional>-->
  52. <!-- </dependency>-->
  53. <!-- <dependency>-->
  54. <!-- <groupId>org.springframework.boot</groupId>-->
  55. <!-- <artifactId>spring-boot-starter-cache</artifactId>-->
  56. <!-- </dependency>-->
  57. <!-- &lt;!&ndash; redis依赖包 &ndash;&gt;-->
  58. <!-- <dependency>-->
  59. <!-- <groupId>org.springframework.boot</groupId>-->
  60. <!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
  61. <!-- <exclusions>-->
  62. <!-- <exclusion>-->
  63. <!-- <groupId>io.lettuce</groupId>-->
  64. <!-- <artifactId>lettuce-core</artifactId>-->
  65. <!-- </exclusion>-->
  66. <!-- </exclusions>-->
  67. <!-- </dependency>-->
  68. <!-- <dependency>-->
  69. <!-- <groupId>redis.clients</groupId>-->
  70. <!-- <artifactId>jedis</artifactId>-->
  71. <!-- </dependency>-->
  72. <!-- <dependency>-->
  73. <!-- <groupId>org.springframework.boot</groupId>-->
  74. <!-- <artifactId>spring-boot-devtools</artifactId>-->
  75. <!-- <scope>provided</scope>-->
  76. <!-- <optional>true</optional>-->
  77. <!-- </dependency>-->
  78. <!-- <dependency>-->
  79. <!-- <groupId>org.projectlombok</groupId>-->
  80. <!-- <artifactId>lombok</artifactId>-->
  81. <!-- <optional>true</optional>-->
  82. <!-- </dependency>-->
  83. <!-- <dependency>-->
  84. <!-- <groupId>org.springframework.boot</groupId>-->
  85. <!-- <artifactId>spring-boot-starter-test</artifactId>-->
  86. <!-- <scope>test</scope>-->
  87. <!-- <exclusions>-->
  88. <!-- <exclusion>-->
  89. <!-- <groupId>org.junit.vintage</groupId>-->
  90. <!-- <artifactId>junit-vintage-engine</artifactId>-->
  91. <!-- </exclusion>-->
  92. <!-- </exclusions>-->
  93. <!-- </dependency>-->
  94. <!-- <dependency>-->
  95. <!-- <groupId>io.projectreactor</groupId>-->
  96. <!-- <artifactId>reactor-test</artifactId>-->
  97. <!-- <scope>test</scope>-->
  98. <!-- </dependency>-->
  99. <!-- <dependency>-->
  100. <!-- <groupId>junit</groupId>-->
  101. <!-- <artifactId>junit</artifactId>-->
  102. <!-- <scope>test</scope>-->
  103. <!-- </dependency>-->
  104. <!-- <dependency>-->
  105. <!-- <groupId>com.github.pagehelper</groupId>-->
  106. <!-- <artifactId>pagehelper-spring-boot-starter</artifactId>-->
  107. <!-- <version>1.2.5</version>-->
  108. <!-- <exclusions>-->
  109. <!-- <exclusion>-->
  110. <!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
  111. <!-- <groupId>org.mybatis.spring.boot</groupId>-->
  112. <!-- </exclusion>-->
  113. <!-- </exclusions>-->
  114. <!-- </dependency>-->
  115. <!-- <dependency>-->
  116. <!-- <groupId>com.alibaba</groupId>-->
  117. <!-- <artifactId>fastjson</artifactId>-->
  118. <!-- <version>1.2.6</version>-->
  119. <!-- </dependency>-->
  120. <!-- &lt;!&ndash;手机短信&ndash;&gt;-->
  121. <!-- <dependency>-->
  122. <!-- <groupId>caimei</groupId>-->
  123. <!-- <artifactId>smsClient</artifactId>-->
  124. <!-- <version>1.0</version>-->
  125. <!-- </dependency>-->
  126. <!-- &lt;!&ndash;knife4j接口文档&ndash;&gt;-->
  127. <!-- <dependency>-->
  128. <!-- <groupId>com.github.xiaoymin</groupId>-->
  129. <!-- <artifactId>knife4j-spring-boot-starter</artifactId>-->
  130. <!-- <version>3.0.2</version>-->
  131. <!-- </dependency>-->
  132. <!-- <dependency>-->
  133. <!-- <groupId>org.apache.httpcomponents</groupId>-->
  134. <!-- <artifactId>httpclient</artifactId>-->
  135. <!-- <version>4.5.7</version>-->
  136. <!-- </dependency>-->
  137. <!-- &lt;!&ndash; jwt &ndash;&gt;-->
  138. <!-- <dependency>-->
  139. <!-- <groupId>com.auth0</groupId>-->
  140. <!-- <artifactId>java-jwt</artifactId>-->
  141. <!-- <version>3.14.0</version>-->
  142. <!-- </dependency>-->
  143. <!-- &lt;!&ndash; 阿里云短信sdk &ndash;&gt;-->
  144. <!-- <dependency>-->
  145. <!-- <groupId>com.aliyun</groupId>-->
  146. <!-- <artifactId>aliyun-java-sdk-core</artifactId>-->
  147. <!-- <version>4.5.18</version>-->
  148. <!-- </dependency>-->
  149. <!-- <dependency>-->
  150. <!-- <groupId>com.aliyun</groupId>-->
  151. <!-- <artifactId>aliyun-java-sdk-dysmsapi</artifactId>-->
  152. <!-- <version>2.1.0</version>-->
  153. <!-- </dependency>-->
  154. <!-- &lt;!&ndash;对象存储oss&ndash;&gt;-->
  155. <!-- <dependency>-->
  156. <!-- <groupId>com.aliyun.oss</groupId>-->
  157. <!-- <artifactId>aliyun-sdk-oss</artifactId>-->
  158. <!-- <version>3.10.2</version>-->
  159. <!-- </dependency>-->
  160. <!-- &lt;!&ndash;dfs&ndash;&gt;-->
  161. <!-- <dependency>-->
  162. <!-- <groupId>com.github.tobato</groupId>-->
  163. <!-- <artifactId>fastdfs-client</artifactId>-->
  164. <!-- <version>1.26.1-RELEASE</version>-->
  165. <!-- </dependency>-->
  166. <!-- </dependencies>-->
  167. <dependencies>
  168. <dependency>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-starter-test</artifactId>
  171. <scope>test</scope>
  172. <exclusions>
  173. <exclusion>
  174. <groupId>org.junit.vintage</groupId>
  175. <artifactId>junit-vintage-engine</artifactId>
  176. </exclusion>
  177. </exclusions>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.springframework.boot</groupId>
  181. <artifactId>spring-boot-starter</artifactId>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.springframework.boot</groupId>
  185. <artifactId>spring-boot-starter-web</artifactId>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-configuration-processor</artifactId>
  190. <optional>true</optional>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework.boot</groupId>
  194. <artifactId>spring-boot-devtools</artifactId>
  195. <scope>provided</scope>
  196. <optional>true</optional>
  197. </dependency>
  198. <dependency>
  199. <groupId>mysql</groupId>
  200. <artifactId>mysql-connector-java</artifactId>
  201. <scope>runtime</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.projectlombok</groupId>
  205. <artifactId>lombok</artifactId>
  206. <optional>true</optional>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.mybatis.spring.boot</groupId>
  210. <artifactId>mybatis-spring-boot-starter</artifactId>
  211. <version>2.1.1</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.github.pagehelper</groupId>
  215. <artifactId>pagehelper-spring-boot-starter</artifactId>
  216. <version>1.2.5</version>
  217. <exclusions>
  218. <exclusion>
  219. <artifactId>mybatis-spring-boot-starter</artifactId>
  220. <groupId>org.mybatis.spring.boot</groupId>
  221. </exclusion>
  222. </exclusions>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.springframework.boot</groupId>
  226. <artifactId>spring-boot-starter-aop</artifactId>
  227. </dependency>
  228. <dependency>
  229. <groupId>com.auth0</groupId>
  230. <artifactId>java-jwt</artifactId>
  231. <version>3.8.3</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>junit</groupId>
  235. <artifactId>junit</artifactId>
  236. <scope>test</scope>
  237. </dependency>
  238. <!--邮箱发送-->
  239. <dependency>
  240. <groupId>org.springframework.boot</groupId>
  241. <artifactId>spring-boot-starter-mail</artifactId>
  242. </dependency>
  243. <!-- redis依赖包 -->
  244. <dependency>
  245. <groupId>org.springframework.boot</groupId>
  246. <artifactId>spring-boot-starter-data-redis</artifactId>
  247. <exclusions>
  248. <exclusion>
  249. <groupId>io.lettuce</groupId>
  250. <artifactId>lettuce-core</artifactId>
  251. </exclusion>
  252. </exclusions>
  253. </dependency>
  254. <dependency>
  255. <groupId>redis.clients</groupId>
  256. <artifactId>jedis</artifactId>
  257. </dependency>
  258. <!--手机短信-->
  259. <dependency>
  260. <groupId>caimei</groupId>
  261. <artifactId>smsClient</artifactId>
  262. <version>1.0</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>com.alibaba</groupId>
  266. <artifactId>fastjson</artifactId>
  267. <version>1.2.6</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>commons-codec</groupId>
  271. <artifactId>commons-codec</artifactId>
  272. <version>${commons-codec.version}</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>commons-lang</groupId>
  276. <artifactId>commons-lang</artifactId>
  277. <version>2.6</version>
  278. </dependency>
  279. <!--dfs-->
  280. <dependency>
  281. <groupId>com.github.tobato</groupId>
  282. <artifactId>fastdfs-client</artifactId>
  283. <version>1.26.1-RELEASE</version>
  284. </dependency>
  285. <!--引入商品模块-->
  286. <dependency>
  287. <groupId>com.caimei.module</groupId>
  288. <artifactId>product</artifactId>
  289. <version>0.0.1-SNAPSHOT</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>org.bouncycastle</groupId>
  293. <artifactId>bcprov-jdk16</artifactId>
  294. <version>1.46</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>com.caimei.module</groupId>
  298. <artifactId>pay</artifactId>
  299. <version>0.0.1-SNAPSHOT</version>
  300. </dependency>
  301. <!-- 对 HTML 富文本文档进行解析和操作 -->
  302. <dependency>
  303. <groupId>org.jsoup</groupId>
  304. <artifactId>jsoup</artifactId>
  305. <version>1.9.2</version>
  306. </dependency>
  307. <!--阿里云开放搜索(OpenSearch)sdk -->
  308. <dependency>
  309. <groupId>com.aliyun.opensearch</groupId>
  310. <artifactId>aliyun-sdk-opensearch</artifactId>
  311. <version>3.5.1</version>
  312. <exclusions>
  313. <exclusion>
  314. <artifactId>guava</artifactId>
  315. <groupId>com.google.guava</groupId>
  316. </exclusion>
  317. <exclusion>
  318. <artifactId>commons-lang</artifactId>
  319. <groupId>commons-lang</groupId>
  320. </exclusion>
  321. <exclusion>
  322. <artifactId>httpclient</artifactId>
  323. <groupId>org.apache.httpcomponents</groupId>
  324. </exclusion>
  325. </exclusions>
  326. </dependency>
  327. <dependency>
  328. <groupId>org.springframework.boot</groupId>
  329. <artifactId>spring-boot-starter-cache</artifactId>
  330. </dependency>
  331. <dependency>
  332. <groupId>io.github.openfeign</groupId>
  333. <artifactId>feign-httpclient</artifactId>
  334. <version>10.2.0</version>
  335. <exclusions>
  336. <exclusion>
  337. <artifactId>httpclient</artifactId>
  338. <groupId>org.apache.httpcomponents</groupId>
  339. </exclusion>
  340. </exclusions>
  341. </dependency>
  342. <dependency>
  343. <groupId>org.apache.httpcomponents</groupId>
  344. <artifactId>httpclient</artifactId>
  345. <version>4.3.5</version>
  346. </dependency>
  347. <dependency>
  348. <groupId>com.aliyun</groupId>
  349. <artifactId>aliyun-java-sdk-core</artifactId>
  350. <version>4.0.6</version> <!-- 注:如提示报错,先升级基础包版,无法解决可联系技术支持 -->
  351. </dependency>
  352. <dependency>
  353. <groupId>com.aliyun</groupId>
  354. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  355. <version>1.1.0</version>
  356. </dependency>
  357. <!--对象存储oss-->
  358. <dependency>
  359. <groupId>com.aliyun.oss</groupId>
  360. <artifactId>aliyun-sdk-oss</artifactId>
  361. <version>3.10.2</version>
  362. </dependency>
  363. <!--knife4j接口文档-->
  364. <dependency>
  365. <groupId>com.github.xiaoymin</groupId>
  366. <artifactId>knife4j-spring-boot-starter</artifactId>
  367. <version>3.0.2</version>
  368. </dependency>
  369. <dependency>
  370. <groupId>io.projectreactor</groupId>
  371. <artifactId>reactor-test</artifactId>
  372. <scope>test</scope>
  373. </dependency>
  374. <dependency>
  375. <groupId>org.apache.httpcomponents</groupId>
  376. <artifactId>httpclient</artifactId>
  377. <version>4.4.1</version>
  378. </dependency>
  379. </dependencies>
  380. <profiles>
  381. <profile>
  382. <id>dev</id>
  383. <properties>
  384. <!-- 环境标识,需要与配置文件的名称相对应 -->
  385. <activatedProperties>dev</activatedProperties>
  386. </properties>
  387. <activation>
  388. <!-- 默认环境 -->
  389. <activeByDefault>true</activeByDefault>
  390. </activation>
  391. </profile>
  392. <profile>
  393. <id>beta</id>
  394. <properties>
  395. <activatedProperties>beta</activatedProperties>
  396. </properties>
  397. </profile>
  398. <profile>
  399. <id>prod</id>
  400. <properties>
  401. <activatedProperties>prod</activatedProperties>
  402. </properties>
  403. </profile>
  404. </profiles>
  405. <build>
  406. <finalName>${project.artifactId}</finalName>
  407. <resources>
  408. <!-- 配置文件路径 -->
  409. <resource>
  410. <!-- 这里对应项目存放配置文件的目录-->
  411. <directory>src/main/resources</directory>
  412. <!-- 开启filtering功能 -->
  413. <filtering>true</filtering>
  414. </resource>
  415. <resource>
  416. <directory>src/main/resources/config/${activatedProperties}</directory>
  417. <filtering>true</filtering>
  418. </resource>
  419. </resources>
  420. <plugins>
  421. <plugin>
  422. <groupId>org.springframework.boot</groupId>
  423. <artifactId>spring-boot-maven-plugin</artifactId>
  424. <configuration>
  425. <!-- springboot启动类目录 -->
  426. <mainClass>com.caimei.AdminApplication</mainClass>
  427. </configuration>
  428. <executions>
  429. <execution>
  430. <goals>
  431. <!-- 创建一个自动可执行的jar或war文件 -->
  432. <goal>repackage</goal>
  433. </goals>
  434. </execution>
  435. </executions>
  436. </plugin>
  437. </plugins>
  438. </build>
  439. </project>