pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>2.1.7.RELEASE</version>
  8. <relativePath />
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>com.sp</groupId>
  12. <artifactId>sp-parent</artifactId>
  13. <version>1.0-SNAPSHOT</version>
  14. <packaging>pom</packaging>
  15. <modules>
  16. <module>sp-common</module>
  17. <module>sp-manager-oss</module>
  18. <module>sp-manager-oss-starter</module>
  19. <module>sp-manager-pay</module>
  20. <module>sp-manager-pay-starter</module>
  21. <module>sp-manager-phone</module>
  22. <module>sp-manager-phone-starter</module>
  23. <module>sp-manager-push</module>
  24. <module>sp-manager-push-starter</module>
  25. <module>sp-manager-realname</module>
  26. <module>sp-manager-realname-starter</module>
  27. <module>sp-manager-sms</module>
  28. <module>sp-manager-sms-starter</module>
  29. <module>sp-manager-im</module>
  30. <module>sp-manager-im-starter</module>
  31. <module>sp-manager-third-aliyun</module>
  32. <module>sp-manager-third-aliyun-starter</module>
  33. <module>sp-manager-third-apple</module>
  34. <module>sp-manager-third-apple-starter</module>
  35. <module>sp-manager-third-wechat</module>
  36. <module>sp-manager-third-wechat-starter</module>
  37. <module>sp-manager-third-agora</module>
  38. <module>sp-manager-third-agora-starter</module>
  39. <module>sp-module-account-core</module>
  40. <module>sp-module-account-app</module>
  41. </modules>
  42. <properties>
  43. <java.version>1.8</java.version>
  44. <package.version>1.0-SNAPSHOT</package.version>
  45. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  47. <mybatis-plus.version>3.2.0</mybatis-plus.version>
  48. <swagger2.version>2.9.2</swagger2.version>
  49. </properties>
  50. <dependencyManagement>
  51. <dependencies>
  52. <!-- 自定义公用代码模块 -->
  53. <dependency>
  54. <groupId>com.sp</groupId>
  55. <artifactId>sp-common</artifactId>
  56. <version>${package.version}</version>
  57. </dependency>
  58. <!-- 自定义对象存储模块 -->
  59. <dependency>
  60. <groupId>com.sp</groupId>
  61. <artifactId>sp-manager-oss</artifactId>
  62. <version>${package.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.sp</groupId>
  66. <artifactId>sp-manager-oss-starter</artifactId>
  67. <version>${package.version}</version>
  68. </dependency>
  69. <!-- 自定义支付模块 -->
  70. <dependency>
  71. <groupId>com.sp</groupId>
  72. <artifactId>sp-manager-pay</artifactId>
  73. <version>${package.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.sp</groupId>
  77. <artifactId>sp-manager-pay-starter</artifactId>
  78. <version>${package.version}</version>
  79. </dependency>
  80. <!-- 自定义一键登录和号码验证模块 -->
  81. <dependency>
  82. <groupId>com.sp</groupId>
  83. <artifactId>sp-manager-phone</artifactId>
  84. <version>${package.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.sp</groupId>
  88. <artifactId>sp-manager-phone-starter</artifactId>
  89. <version>${package.version}</version>
  90. </dependency>
  91. <!-- 自定义推送模块 -->
  92. <dependency>
  93. <groupId>com.sp</groupId>
  94. <artifactId>sp-manager-push</artifactId>
  95. <version>${package.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.sp</groupId>
  99. <artifactId>sp-manager-push-starter</artifactId>
  100. <version>${package.version}</version>
  101. </dependency>
  102. <!-- 自定义实人认证模块 -->
  103. <dependency>
  104. <groupId>com.sp</groupId>
  105. <artifactId>sp-manager-realname</artifactId>
  106. <version>${package.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.sp</groupId>
  110. <artifactId>sp-manager-realname-starter</artifactId>
  111. <version>${package.version}</version>
  112. </dependency>
  113. <!-- 自定义短信发送模块 -->
  114. <dependency>
  115. <groupId>com.sp</groupId>
  116. <artifactId>sp-manager-sms</artifactId>
  117. <version>${package.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.sp</groupId>
  121. <artifactId>sp-manager-sms-starter</artifactId>
  122. <version>${package.version}</version>
  123. </dependency>
  124. <!-- 自定义IM即时通讯 -->
  125. <dependency>
  126. <groupId>com.sp</groupId>
  127. <artifactId>sp-manager-im</artifactId>
  128. <version>${package.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.sp</groupId>
  132. <artifactId>sp-manager-im-starter</artifactId>
  133. <version>${package.version}</version>
  134. </dependency>
  135. <!-- 自定义阿里云api封装 -->
  136. <dependency>
  137. <groupId>com.sp</groupId>
  138. <artifactId>sp-manager-third-aliyun</artifactId>
  139. <version>${package.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.sp</groupId>
  143. <artifactId>sp-manager-third-aliyun-starter</artifactId>
  144. <version>${package.version}</version>
  145. </dependency>
  146. <!-- 自定义微信api封装 -->
  147. <dependency>
  148. <groupId>com.sp</groupId>
  149. <artifactId>sp-manager-third-wechat</artifactId>
  150. <version>${package.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.sp</groupId>
  154. <artifactId>sp-manager-third-wechat-starter</artifactId>
  155. <version>${package.version}</version>
  156. </dependency>
  157. <!-- 自定义苹果api封装 -->
  158. <dependency>
  159. <groupId>com.sp</groupId>
  160. <artifactId>sp-manager-third-apple</artifactId>
  161. <version>${package.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.sp</groupId>
  165. <artifactId>sp-manager-third-apple-starter</artifactId>
  166. <version>${package.version}</version>
  167. </dependency>
  168. <!-- 自定义声网api封装 -->
  169. <dependency>
  170. <groupId>com.sp</groupId>
  171. <artifactId>sp-manager-third-agora</artifactId>
  172. <version>${package.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.sp</groupId>
  176. <artifactId>sp-manager-third-agora-starter</artifactId>
  177. <version>${package.version}</version>
  178. </dependency>
  179. <!-- 帐号管理 -->
  180. <dependency>
  181. <groupId>com.sp</groupId>
  182. <artifactId>sp-module-account-core</artifactId>
  183. <version>${package.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>com.sp</groupId>
  187. <artifactId>sp-module-account-app</artifactId>
  188. <version>${package.version}</version>
  189. </dependency>
  190. <!-- 系统管理 -->
  191. <dependency>
  192. <groupId>com.sp</groupId>
  193. <artifactId>sp-module-sys-core</artifactId>
  194. <version>${package.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.sp</groupId>
  198. <artifactId>sp-module-sys-app</artifactId>
  199. <version>${package.version}</version>
  200. </dependency>
  201. <!-- spring-data-redis RedisTemplate -->
  202. <dependency>
  203. <groupId>org.springframework.data</groupId>
  204. <artifactId>spring-data-redis</artifactId>
  205. <version>2.1.10.RELEASE</version>
  206. </dependency>
  207. <!-- RocketMQ starter -->
  208. <dependency>
  209. <groupId>org.apache.rocketmq</groupId>
  210. <artifactId>rocketmq-spring-boot-starter</artifactId>
  211. <version>2.0.3</version>
  212. </dependency>
  213. <!-- commons-logging API, 会桥接成logback实现 -->
  214. <dependency>
  215. <groupId>commons-logging</groupId>
  216. <artifactId>commons-logging</artifactId>
  217. <version>1.2</version>
  218. </dependency>
  219. <!-- apache工具类 -->
  220. <dependency>
  221. <groupId>org.apache.commons</groupId>
  222. <artifactId>commons-lang3</artifactId>
  223. <version>3.9</version>
  224. </dependency>
  225. <!-- FTP客户端等 -->
  226. <dependency>
  227. <groupId>commons-net</groupId>
  228. <artifactId>commons-net</artifactId>
  229. <version>3.6</version>
  230. </dependency>
  231. <!-- apache池化通用框架 -->
  232. <dependency>
  233. <groupId>org.apache.commons</groupId>
  234. <artifactId>commons-pool2</artifactId>
  235. <version>2.8.1</version>
  236. </dependency>
  237. <!-- apache codec编码解码 -->
  238. <dependency>
  239. <groupId>commons-codec</groupId>
  240. <artifactId>commons-codec</artifactId>
  241. <version>1.11</version>
  242. </dependency>
  243. <!-- mybatis jdbc封装半ORM框架-->
  244. <dependency>
  245. <groupId>org.mybatis.spring.boot</groupId>
  246. <artifactId>mybatis-spring-boot-starter</artifactId>
  247. <version>2.1.0</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>com.baomidou</groupId>
  251. <artifactId>mybatis-plus-boot-starter</artifactId>
  252. <version>${mybatis-plus.version}</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>com.baomidou</groupId>
  256. <artifactId>mybatis-plus-generator</artifactId>
  257. <version>${mybatis-plus.version}</version>
  258. </dependency>
  259. <!-- joda时间计算工具类 -->
  260. <dependency>
  261. <groupId>joda-time</groupId>
  262. <artifactId>joda-time</artifactId>
  263. <version>2.10.3</version>
  264. </dependency>
  265. <!-- hibernate-validator参数校验 -->
  266. <dependency>
  267. <groupId>org.hibernate.validator</groupId>
  268. <artifactId>hibernate-validator</artifactId>
  269. <version>6.0.16.Final</version>
  270. </dependency>
  271. <!-- http客户端 -->
  272. <dependency>
  273. <groupId>org.apache.httpcomponents</groupId>
  274. <artifactId>httpclient</artifactId>
  275. <version>4.5.9</version>
  276. </dependency>
  277. <!-- 信鸽推送 -->
  278. <dependency>
  279. <groupId>com.github.xingePush</groupId>
  280. <artifactId>xinge</artifactId>
  281. <version>1.2.0-SNAPSHOT</version>
  282. </dependency>
  283. <!-- 极光推送 -->
  284. <dependency>
  285. <groupId>cn.jpush.api</groupId>
  286. <artifactId>jpush-client</artifactId>
  287. <version>3.3.11</version>
  288. </dependency>
  289. <!-- zxing二维码工具 -->
  290. <dependency>
  291. <groupId>com.google.zxing</groupId>
  292. <artifactId>core</artifactId>
  293. <version>3.4.0</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>com.google.zxing</groupId>
  297. <artifactId>javase</artifactId>
  298. <version>3.4.0</version>
  299. </dependency>
  300. <!-- 融云即时通讯 -->
  301. <dependency>
  302. <groupId>cn.rongcloud.im</groupId>
  303. <artifactId>server-sdk-java</artifactId>
  304. <version>3.1.6</version>
  305. </dependency>
  306. <!-- POI Excel操作 -->
  307. <dependency>
  308. <groupId>org.apache.poi</groupId>
  309. <artifactId>poi-ooxml</artifactId>
  310. <version>4.0.1</version>
  311. </dependency>
  312. <!-- DES对称加密 BouncyCastleProvider -->
  313. <dependency>
  314. <groupId>org.bouncycastle</groupId>
  315. <artifactId>bcprov-jdk16</artifactId>
  316. <version>1.45</version>
  317. </dependency>
  318. <!-- SSH客户端 -->
  319. <dependency>
  320. <groupId>com.jcraft</groupId>
  321. <artifactId>jsch</artifactId>
  322. <version>0.1.46</version>
  323. </dependency>
  324. <!-- druid数据库连接池 -->
  325. <dependency>
  326. <groupId>com.alibaba</groupId>
  327. <artifactId>druid</artifactId>
  328. <version>1.1.20</version>
  329. </dependency>
  330. <dependency>
  331. <groupId>com.alibaba</groupId>
  332. <artifactId>druid-spring-boot-starter</artifactId>
  333. <version>1.1.10</version>
  334. </dependency>
  335. <!-- jwt 苹果ID解析用到 -->
  336. <dependency>
  337. <groupId>io.jsonwebtoken</groupId>
  338. <artifactId>jjwt</artifactId>
  339. <version>0.9.1</version>
  340. </dependency>
  341. <!-- mysql驱动程序 -->
  342. <dependency>
  343. <groupId>mysql</groupId>
  344. <artifactId>mysql-connector-java</artifactId>
  345. <version>8.0.17</version>
  346. <scope>runtime</scope>
  347. </dependency>
  348. <dependency>
  349. <groupId>com.aliyun</groupId>
  350. <artifactId>aliyun-java-sdk-core</artifactId>
  351. <version>4.4.4</version>
  352. </dependency>
  353. <!-- aliyun STS 安全临时授权 -->
  354. <dependency>
  355. <groupId>com.aliyun</groupId>
  356. <artifactId>aliyun-java-sdk-sts</artifactId>
  357. <version>3.0.0</version>
  358. </dependency>
  359. <!-- aliyun OSS存储 -->
  360. <dependency>
  361. <groupId>com.aliyun.oss</groupId>
  362. <artifactId>aliyun-sdk-oss</artifactId>
  363. <version>3.10.2</version>
  364. </dependency>
  365. <!-- aliyun 号码认证 -->
  366. <dependency>
  367. <groupId>com.aliyun</groupId>
  368. <artifactId>aliyun-java-sdk-dypnsapi</artifactId>
  369. <version>1.0.4</version>
  370. </dependency>
  371. <!--lombok编译器增强 -->
  372. <dependency>
  373. <groupId>org.projectlombok</groupId>
  374. <artifactId>lombok</artifactId>
  375. <version>1.18.10</version>
  376. <scope>provided</scope>
  377. </dependency>
  378. <!--swagger2接口文当文档 -->
  379. <dependency>
  380. <groupId>io.springfox</groupId>
  381. <artifactId>springfox-swagger2</artifactId>
  382. <version>${swagger2.version}</version>
  383. </dependency>
  384. <!--<dependency>
  385. <groupId>io.springfox</groupId>
  386. <artifactId>springfox-swagger-ui</artifactId>
  387. <version>${swagger2.version}</version>
  388. </dependency>
  389. <dependency>
  390. <groupId>com.github.caspar-chen</groupId>
  391. <artifactId>swagger-ui-layer</artifactId>
  392. <version>1.1.3</version>
  393. </dependency>
  394. -->
  395. <!-- https://doc.xiaominfo.com/ -->
  396. <dependency>
  397. <groupId>com.github.xiaoymin</groupId>
  398. <artifactId>swagger-bootstrap-ui</artifactId>
  399. <version>1.9.6</version>
  400. </dependency>
  401. <!-- SpringBoot热部署 -->
  402. <dependency>
  403. <groupId>org.springframework.boot</groupId>
  404. <artifactId>spring-boot-devtools</artifactId>
  405. <version>2.1.8.RELEASE</version>
  406. <optional>true</optional>
  407. </dependency>
  408. </dependencies>
  409. </dependencyManagement>
  410. <distributionManagement>
  411. <repository>
  412. <id>maven-releases</id>
  413. <url>http://192.168.2.10:8081/repository/maven-releases/</url><!--私服对应url-->
  414. </repository>
  415. <snapshotRepository>
  416. <id>maven-snapshots</id>
  417. <url>http://192.168.2.10:8081/repository/maven-snapshots/</url><!--私服对应url-->
  418. </snapshotRepository>
  419. </distributionManagement>
  420. <profiles>
  421. <profile>
  422. <id>dev</id>
  423. <properties>
  424. <active.profile>dev</active.profile>
  425. </properties>
  426. <activation>
  427. <activeByDefault>true</activeByDefault>
  428. </activation>
  429. </profile>
  430. <profile>
  431. <id>test</id>
  432. <properties>
  433. <active.profile>test</active.profile>
  434. </properties>
  435. </profile>
  436. <profile>
  437. <id>prod</id>
  438. <properties>
  439. <active.profile>prod</active.profile>
  440. </properties>
  441. </profile>
  442. </profiles>
  443. <build>
  444. <plugins>
  445. <!-- 默认跳过单元测试 -->
  446. <plugin>
  447. <groupId>org.apache.maven.plugins</groupId>
  448. <artifactId>maven-surefire-plugin</artifactId>
  449. <configuration>
  450. <skip>true</skip>
  451. </configuration>
  452. </plugin>
  453. <!-- 编译 -->
  454. <plugin>
  455. <groupId>org.apache.maven.plugins</groupId>
  456. <artifactId>maven-compiler-plugin</artifactId>
  457. <configuration>
  458. <source>1.8</source>
  459. <target>1.8</target>
  460. <encoding>${project.build.sourceEncoding}</encoding>
  461. <compilerArguments>
  462. <extdirs>${project.basedir}/lib</extdirs>
  463. </compilerArguments>
  464. </configuration>
  465. </plugin>
  466. <!-- 配置多环境, 打包去掉profiles下的配置文件, 拷贝{active.profile}下的配置文件到build目录 -->
  467. <plugin>
  468. <groupId>org.apache.maven.plugins</groupId>
  469. <artifactId>maven-jar-plugin</artifactId>
  470. <configuration>
  471. <excludes>
  472. <exclude>profiles/**</exclude>
  473. </excludes>
  474. </configuration>
  475. </plugin>
  476. <plugin>
  477. <groupId>org.apache.maven.plugins</groupId>
  478. <artifactId>maven-resources-plugin</artifactId>
  479. <executions>
  480. <execution>
  481. <id>copy-resources</id>
  482. <phase>compile</phase>
  483. <goals>
  484. <goal>copy-resources</goal>
  485. </goals>
  486. <configuration>
  487. <overwrite>true</overwrite>
  488. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  489. <resources>
  490. <resource>
  491. <directory>src/main/resources/profiles/${active.profile}</directory>
  492. <filtering>false</filtering>
  493. </resource>
  494. </resources>
  495. </configuration>
  496. </execution>
  497. </executions>
  498. </plugin>
  499. </plugins>
  500. </build>
  501. </project>