pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  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/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.cloud</groupId>
  6. <artifactId>parent</artifactId>
  7. <version>2.0</version>
  8. <packaging>pom</packaging>
  9. <name>archives-server</name>
  10. <description>Base</description>
  11. <url>http://www.baidu.com</url>
  12. <licenses>
  13. <license>
  14. <name>The Apache License, Version 2.0</name>
  15. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  16. </license>
  17. </licenses>
  18. <developers>
  19. <developer>
  20. <id>Base</id>
  21. <name>myth</name>
  22. <email>abc@qq.com</email>
  23. </developer>
  24. </developers>
  25. <properties>
  26. <utf8>UTF-8</utf8>
  27. <boot.artifact.name>bootstrap-${project.version}</boot.artifact.name>
  28. <assembly.name>spring-boot-plus-server-${project.version}</assembly.name>
  29. <admin.artifact.name>admin-${project.version}</admin.artifact.name>
  30. <admin.assembly.name>admin-${project.version}</admin.assembly.name>
  31. <project.build.sourceEncoding>${utf8}</project.build.sourceEncoding>
  32. <project.reporting.outputEncoding>${utf8}</project.reporting.outputEncoding>
  33. <java.version>1.8</java.version>
  34. <spring-boot.version>2.2.5.RELEASE</spring-boot.version>
  35. <spring-boot-admin.version>2.2.2</spring-boot-admin.version>
  36. <mybatis-plus-boot-starter.version>3.3.1</mybatis-plus-boot-starter.version>
  37. <velocity.version>2.2</velocity.version>
  38. <commons-lang3.version>3.9</commons-lang3.version>
  39. <commons-collections4.version>4.4</commons-collections4.version>
  40. <commons-io.version>2.6</commons-io.version>
  41. <commons-codec.version>1.14</commons-codec.version>
  42. <commons-net.version>3.6</commons-net.version>
  43. <commons-pool2.version>2.8.0</commons-pool2.version>
  44. <commons-text.version>1.8</commons-text.version>
  45. <fastjson.version>1.2.72</fastjson.version>
  46. <mysql.version>5.1.47</mysql.version>
  47. <reflections.version>0.9.9</reflections.version>
  48. <jansi.version>1.18</jansi.version>
  49. <lombok.version>1.18.12</lombok.version>
  50. <com.google.zxing.version>3.3.0</com.google.zxing.version>
  51. <hutool.version>5.2.4</hutool.version>
  52. <junit.version>4.12</junit.version>
  53. <ini4j.version>0.5.4</ini4j.version>
  54. <mapstruct.version>1.3.1.Final</mapstruct.version>
  55. <shiro.version>1.5.1</shiro.version>
  56. <jwt.version>3.10.1</jwt.version>
  57. <guava.version>28.2-jre</guava.version>
  58. <snakeyaml.version>1.26</snakeyaml.version>
  59. <swagger2.version>2.9.2</swagger2.version>
  60. <knife4j.version>2.0.2</knife4j.version>
  61. <aliyun-java-sdk-dysmsapi.version>1.1.0</aliyun-java-sdk-dysmsapi.version>
  62. <aliyun-java-sdk-core.version>4.5.3</aliyun-java-sdk-core.version>
  63. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  64. <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
  65. <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
  66. <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
  67. <maven-versions-plugin.version>2.2</maven-versions-plugin.version>
  68. <maven-assembly-plugin.version>3.2.0</maven-assembly-plugin.version>
  69. <org.apache.poi-scratchpad.version>3.12</org.apache.poi-scratchpad.version>
  70. <dom4j.version>1.6.1</dom4j.version>
  71. </properties>
  72. <modules>
  73. <module>admin</module>
  74. <module>bootstrap</module>
  75. <module>config</module>
  76. <module>mobile-server</module>
  77. <module>framework</module>
  78. <module>generator</module>
  79. <module>scheduled</module>
  80. <module>system</module>
  81. <module>management-server</module>
  82. </modules>
  83. <dependencyManagement>
  84. <dependencies>
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-dependencies</artifactId>
  88. <version>${spring-boot.version}</version>
  89. <type>pom</type>
  90. <scope>import</scope>
  91. </dependency>
  92. <!-- spring-boot start -->
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-web</artifactId>
  96. <version>${spring-boot.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-aop</artifactId>
  101. <version>${spring-boot.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-tomcat</artifactId>
  106. <version>${spring-boot.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-jdbc</artifactId>
  111. <version>${spring-boot.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-data-redis</artifactId>
  116. <version>${spring-boot.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-starter-json</artifactId>
  121. <version>${spring-boot.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-starter-validation</artifactId>
  126. <version>${spring-boot.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-configuration-processor</artifactId>
  131. <version>${spring-boot.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.springframework.boot</groupId>
  135. <artifactId>spring-boot-starter-security</artifactId>
  136. <version>${spring-boot.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-test</artifactId>
  141. <version>${spring-boot.version}</version>
  142. <scope>test</scope>
  143. </dependency>
  144. <!-- spring-boot end -->
  145. <!-- mybatis-plus begin -->
  146. <dependency>
  147. <groupId>com.baomidou</groupId>
  148. <artifactId>mybatis-plus-boot-starter</artifactId>
  149. <version>${mybatis-plus-boot-starter.version}</version>
  150. </dependency>
  151. <!-- mybatis-plus end -->
  152. <!-- MySQL -->
  153. <dependency>
  154. <groupId>mysql</groupId>
  155. <artifactId>mysql-connector-java</artifactId>
  156. <version>${mysql.version}</version>
  157. </dependency>
  158. <!-- swagger start -->
  159. <dependency>
  160. <groupId>io.springfox</groupId>
  161. <artifactId>springfox-swagger2</artifactId>
  162. <version>${swagger2.version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>io.springfox</groupId>
  166. <artifactId>springfox-swagger-ui</artifactId>
  167. <version>${swagger2.version}</version>
  168. </dependency>
  169. <!-- swagger end -->
  170. <dependency>
  171. <groupId>com.github.xiaoymin</groupId>
  172. <artifactId>knife4j-spring-boot-starter</artifactId>
  173. <version>${knife4j.version}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>com.alibaba</groupId>
  177. <artifactId>fastjson</artifactId>
  178. <version>${fastjson.version}</version>
  179. </dependency>
  180. <!-- apache commons start -->
  181. <dependency>
  182. <groupId>org.apache.commons</groupId>
  183. <artifactId>commons-lang3</artifactId>
  184. <version>${commons-lang3.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.commons</groupId>
  188. <artifactId>commons-collections4</artifactId>
  189. <version>${commons-collections4.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>commons-io</groupId>
  193. <artifactId>commons-io</artifactId>
  194. <version>${commons-io.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>commons-codec</groupId>
  198. <artifactId>commons-codec</artifactId>
  199. <version>${commons-codec.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>commons-net</groupId>
  203. <artifactId>commons-net</artifactId>
  204. <version>${commons-net.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.commons</groupId>
  208. <artifactId>commons-pool2</artifactId>
  209. <version>${commons-pool2.version}</version>
  210. </dependency>
  211. <!-- apache commons end -->
  212. <dependency>
  213. <groupId>org.reflections</groupId>
  214. <artifactId>reflections</artifactId>
  215. <version>${reflections.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.google.guava</groupId>
  219. <artifactId>guava</artifactId>
  220. <version>${guava.version}</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.fusesource.jansi</groupId>
  224. <artifactId>jansi</artifactId>
  225. <version>${jansi.version}</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.projectlombok</groupId>
  229. <artifactId>lombok</artifactId>
  230. <version>${lombok.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.yaml</groupId>
  234. <artifactId>snakeyaml</artifactId>
  235. <version>${snakeyaml.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>cn.hutool</groupId>
  239. <artifactId>hutool-all</artifactId>
  240. <version>${hutool.version}</version>
  241. </dependency>
  242. <!-- ini格式处理 -->
  243. <dependency>
  244. <groupId>org.ini4j</groupId>
  245. <artifactId>ini4j</artifactId>
  246. <version>${ini4j.version}</version>
  247. </dependency>
  248. <!-- 对象属性复制 https://mapstruct.org/ -->
  249. <dependency>
  250. <groupId>org.mapstruct</groupId>
  251. <artifactId>mapstruct</artifactId>
  252. <version>${mapstruct.version}</version>
  253. </dependency>
  254. <!-- XSS -->
  255. <dependency>
  256. <groupId>org.apache.commons</groupId>
  257. <artifactId>commons-text</artifactId>
  258. <version>${commons-text.version}</version>
  259. </dependency>
  260. <!-- 项目模块start -->
  261. <dependency>
  262. <groupId>com.cloud</groupId>
  263. <artifactId>admin</artifactId>
  264. <version>2.0</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>com.cloud</groupId>
  268. <artifactId>xr_bootstrap</artifactId>
  269. <version>${project.version}</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>com.cloud</groupId>
  273. <artifactId>config</artifactId>
  274. <version>${project.version}</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>com.cloud</groupId>
  278. <artifactId>web</artifactId>
  279. <version>${project.version}</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>com.cloud</groupId>
  283. <artifactId>framework</artifactId>
  284. <version>${project.version}</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>com.cloud</groupId>
  288. <artifactId>system</artifactId>
  289. <version>${project.version}</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>com.cloud</groupId>
  293. <artifactId>scheduled</artifactId>
  294. <version>${project.version}</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>com.cloud</groupId>
  298. <artifactId>management</artifactId>
  299. <version>2.0</version>
  300. </dependency>
  301. <!-- 项目模块end -->
  302. </dependencies>
  303. </dependencyManagement>
  304. <dependencies>
  305. <dependency>
  306. <groupId>org.springframework.boot</groupId>
  307. <artifactId>spring-boot-starter-web</artifactId>
  308. </dependency>
  309. <dependency>
  310. <groupId>org.springframework.boot</groupId>
  311. <artifactId>spring-boot-starter-json</artifactId>
  312. </dependency>
  313. <dependency>
  314. <groupId>org.springframework.boot</groupId>
  315. <artifactId>spring-boot-starter-validation</artifactId>
  316. </dependency>
  317. <dependency>
  318. <groupId>org.springframework.boot</groupId>
  319. <artifactId>spring-boot-configuration-processor</artifactId>
  320. </dependency>
  321. <dependency>
  322. <groupId>org.springframework.boot</groupId>
  323. <artifactId>spring-boot-starter-test</artifactId>
  324. <scope>test</scope>
  325. </dependency>
  326. <dependency>
  327. <groupId>com.alibaba</groupId>
  328. <artifactId>fastjson</artifactId>
  329. </dependency>
  330. <dependency>
  331. <groupId>org.apache.commons</groupId>
  332. <artifactId>commons-lang3</artifactId>
  333. </dependency>
  334. <dependency>
  335. <groupId>org.apache.commons</groupId>
  336. <artifactId>commons-collections4</artifactId>
  337. </dependency>
  338. <dependency>
  339. <groupId>commons-io</groupId>
  340. <artifactId>commons-io</artifactId>
  341. </dependency>
  342. <dependency>
  343. <groupId>commons-codec</groupId>
  344. <artifactId>commons-codec</artifactId>
  345. </dependency>
  346. <dependency>
  347. <groupId>commons-net</groupId>
  348. <artifactId>commons-net</artifactId>
  349. </dependency>
  350. <dependency>
  351. <groupId>org.apache.commons</groupId>
  352. <artifactId>commons-pool2</artifactId>
  353. </dependency>
  354. <dependency>
  355. <groupId>org.reflections</groupId>
  356. <artifactId>reflections</artifactId>
  357. </dependency>
  358. <dependency>
  359. <groupId>com.google.guava</groupId>
  360. <artifactId>guava</artifactId>
  361. </dependency>
  362. <dependency>
  363. <groupId>org.fusesource.jansi</groupId>
  364. <artifactId>jansi</artifactId>
  365. </dependency>
  366. <dependency>
  367. <groupId>org.projectlombok</groupId>
  368. <artifactId>lombok</artifactId>
  369. </dependency>
  370. <dependency>
  371. <groupId>org.yaml</groupId>
  372. <artifactId>snakeyaml</artifactId>
  373. </dependency>
  374. <dependency>
  375. <groupId>cn.hutool</groupId>
  376. <artifactId>hutool-all</artifactId>
  377. </dependency>
  378. <dependency>
  379. <groupId>org.ini4j</groupId>
  380. <artifactId>ini4j</artifactId>
  381. </dependency>
  382. <dependency>
  383. <groupId>org.mapstruct</groupId>
  384. <artifactId>mapstruct</artifactId>
  385. </dependency>
  386. <dependency>
  387. <groupId>org.apache.commons</groupId>
  388. <artifactId>commons-text</artifactId>
  389. </dependency>
  390. </dependencies>
  391. <build>
  392. <resources>
  393. <resource>
  394. <directory>src/main/resources</directory>
  395. <filtering>true</filtering>
  396. </resource>
  397. </resources>
  398. <plugins>
  399. <plugin>
  400. <groupId>org.apache.maven.plugins</groupId>
  401. <artifactId>maven-resources-plugin</artifactId>
  402. <version>${maven-resources-plugin.version}</version>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.apache.maven.plugins</groupId>
  406. <artifactId>maven-compiler-plugin</artifactId>
  407. <version>${maven-compiler-plugin.version}</version>
  408. <configuration>
  409. <source>${java.version}</source>
  410. <target>${java.version}</target>
  411. <annotationProcessorPaths>
  412. <path>
  413. <groupId>org.mapstruct</groupId>
  414. <artifactId>mapstruct-processor</artifactId>
  415. <version>${mapstruct.version}</version>
  416. </path>
  417. <path>
  418. <groupId>org.projectlombok</groupId>
  419. <artifactId>lombok</artifactId>
  420. <version>${lombok.version}</version>
  421. </path>
  422. </annotationProcessorPaths>
  423. </configuration>
  424. </plugin>
  425. <!-- 打包时跳过测试 -->
  426. <plugin>
  427. <groupId>org.apache.maven.plugins</groupId>
  428. <artifactId>maven-surefire-plugin</artifactId>
  429. <version>${maven-surefire-plugin.version}</version>
  430. <configuration>
  431. <skipTests>true</skipTests>
  432. <testFailureIgnore>true</testFailureIgnore>
  433. </configuration>
  434. </plugin>
  435. <plugin>
  436. <groupId>org.apache.maven.plugins</groupId>
  437. <artifactId>maven-javadoc-plugin</artifactId>
  438. <version>${maven-javadoc-plugin.version}</version>
  439. <configuration>
  440. <additionalOptions>
  441. <additionalOption>-Xdoclint:none</additionalOption>
  442. </additionalOptions>
  443. <!-- 打包时跳过 -->
  444. <skip>true</skip>
  445. </configuration>
  446. <executions>
  447. <execution>
  448. <id>attach-javadocs</id>
  449. <goals>
  450. <goal>jar</goal>
  451. </goals>
  452. </execution>
  453. </executions>
  454. </plugin>
  455. <!-- 版本统一管理插件 -->
  456. <plugin>
  457. <groupId>org.codehaus.mojo</groupId>
  458. <artifactId>versions-maven-plugin</artifactId>
  459. <version>${maven-versions-plugin.version}</version>
  460. </plugin>
  461. </plugins>
  462. </build>
  463. <!--MAVEN打包选择运行环境-->
  464. <!-- dev:开发环境(默认) test:测试环境 uat:用户验收 prod:生产环境 -->
  465. <profiles>
  466. <profile>
  467. <id>dev</id>
  468. <properties>
  469. <profileActive>dev</profileActive>
  470. </properties>
  471. <activation>
  472. <activeByDefault>true</activeByDefault>
  473. </activation>
  474. </profile>
  475. <profile>
  476. <id>prod</id>
  477. <properties>
  478. <profileActive>prod</profileActive>
  479. </properties>
  480. <activation>
  481. <activeByDefault>false</activeByDefault>
  482. </activation>
  483. </profile>
  484. </profiles>
  485. <repositories>
  486. <repository>
  487. <id>aliyun</id>
  488. <name>aliyun-maven</name>
  489. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  490. </repository>
  491. <repository>
  492. <id>spring-milestones</id>
  493. <name>Spring Milestones</name>
  494. <url>https://maven.aliyun.com/repository/spring</url>
  495. </repository>
  496. <repository>
  497. <id>central</id>
  498. <name>maven-central</name>
  499. <url>http://central.maven.org/maven2/</url>
  500. </repository>
  501. </repositories>
  502. </project>