pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>org.jeecgframework.boot</groupId>
  4. <artifactId>jeecg-boot-parent</artifactId>
  5. <version>3.4.0</version>
  6. <packaging>pom</packaging>
  7. <name>JEECG BOOT ${project.version}</name>
  8. <parent>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-starter-parent</artifactId>
  11. <version>2.6.6</version>
  12. <relativePath/>
  13. </parent>
  14. <properties>
  15. <jeecgboot.version>3.4.0</jeecgboot.version>
  16. <java.version>1.8</java.version>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <!-- 微服务 -->
  19. <skip.springboot.maven>false</skip.springboot.maven>
  20. <spring-cloud.version>2021.0.3</spring-cloud.version>
  21. <spring-cloud-alibaba.version>2021.0.1.0</spring-cloud-alibaba.version>
  22. <alibaba.nacos.version>2.0.4</alibaba.nacos.version>
  23. <xxl-job-core.version>2.2.0</xxl-job-core.version>
  24. <fastjson.version>1.2.83</fastjson.version>
  25. <knife4j-spring-boot-starter.version>3.0.3</knife4j-spring-boot-starter.version>
  26. <knife4j-spring-ui.version>2.0.9</knife4j-spring-ui.version>
  27. <!-- 数据库驱动 -->
  28. <postgresql.version>42.2.6</postgresql.version>
  29. <ojdbc6.version>11.2.0.3</ojdbc6.version>
  30. <sqljdbc4.version>4.0</sqljdbc4.version>
  31. <mysql-connector-java.version>8.0.27</mysql-connector-java.version>
  32. <hutool.version>5.3.8</hutool.version>
  33. <redisson.version>3.16.1</redisson.version>
  34. <commons-beanutils.version>1.9.4</commons-beanutils.version>
  35. <guava.version>29.0-jre</guava.version>
  36. <!-- 持久层 -->
  37. <mybatis-plus.version>3.5.1</mybatis-plus.version>
  38. <dynamic-datasource-spring-boot-starter.version>3.2.0</dynamic-datasource-spring-boot-starter.version>
  39. <druid.version>1.1.22</druid.version>
  40. <minidao.version>1.9.0</minidao.version>
  41. <!-- 积木报表-->
  42. <jimureport-spring-boot-starter.version>1.5.2</jimureport-spring-boot-starter.version>
  43. <commons.version>2.6</commons.version>
  44. <aliyun-java-sdk-dysmsapi.version>2.1.0</aliyun-java-sdk-dysmsapi.version>
  45. <aliyun.oss.version>3.11.2</aliyun.oss.version>
  46. <!-- shiro -->
  47. <shiro.version>1.9.1</shiro.version>
  48. <java-jwt.version>3.11.0</java-jwt.version>
  49. <shiro-redis.version>3.1.0</shiro-redis.version>
  50. <codegenerate.version>1.3.9</codegenerate.version>
  51. <autopoi-web.version>1.4.2</autopoi-web.version>
  52. <minio.version>8.0.3</minio.version>
  53. <justauth-spring-boot-starter.version>1.3.4</justauth-spring-boot-starter.version>
  54. <dom4j.version>1.6.1</dom4j.version>
  55. <qiniu-java-sdk.version>7.4.0</qiniu-java-sdk.version>
  56. <!-- Log4j2爆雷漏洞 -->
  57. <log4j2.version>2.17.0</log4j2.version>
  58. <logback.version>1.2.9</logback.version>
  59. </properties>
  60. <modules>
  61. <module>jeecg-boot-base</module>
  62. <module>jeecg-boot-module-demo</module>
  63. <module>jeecg-boot-module-system</module>
  64. </modules>
  65. <repositories>
  66. <repository>
  67. <id>aliyun</id>
  68. <name>aliyun Repository</name>
  69. <url>https://maven.aliyun.com/repository/public</url>
  70. <snapshots>
  71. <enabled>false</enabled>
  72. </snapshots>
  73. </repository>
  74. <repository>
  75. <id>jeecg</id>
  76. <name>jeecg Repository</name>
  77. <url>https://maven.jeecg.org/nexus/content/repositories/jeecg</url>
  78. <snapshots>
  79. <enabled>false</enabled>
  80. </snapshots>
  81. </repository>
  82. <repository>
  83. <id>jeecg-snapshots</id>
  84. <name>jeecg-snapshots Repository</name>
  85. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  86. <releases>
  87. <enabled>false</enabled>
  88. </releases>
  89. <snapshots>
  90. <enabled>true</enabled>
  91. </snapshots>
  92. </repository>
  93. </repositories>
  94. <dependencies>
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-test</artifactId>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>junit</groupId>
  102. <artifactId>junit</artifactId>
  103. <scope>test</scope>
  104. </dependency>
  105. <!-- Lombok -->
  106. <dependency>
  107. <groupId>org.projectlombok</groupId>
  108. <artifactId>lombok</artifactId>
  109. </dependency>
  110. <!-- json -->
  111. <dependency>
  112. <groupId>com.alibaba</groupId>
  113. <artifactId>fastjson</artifactId>
  114. <version>${fastjson.version}</version>
  115. </dependency>
  116. </dependencies>
  117. <dependencyManagement>
  118. <dependencies>
  119. <!-- spring-cloud-->
  120. <dependency>
  121. <groupId>org.springframework.cloud</groupId>
  122. <artifactId>spring-cloud-dependencies</artifactId>
  123. <version>${spring-cloud.version}</version>
  124. <type>pom</type>
  125. <scope>import</scope>
  126. </dependency>
  127. <!-- spring-cloud-alibaba -->
  128. <dependency>
  129. <groupId>com.alibaba.cloud</groupId>
  130. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  131. <version>${spring-cloud-alibaba.version}</version>
  132. <type>pom</type>
  133. <scope>import</scope>
  134. </dependency>
  135. <!-- system 模块-->
  136. <dependency>
  137. <groupId>org.jeecgframework.boot</groupId>
  138. <artifactId>jeecg-boot-module-system</artifactId>
  139. <version>${jeecgboot.version}</version>
  140. </dependency>
  141. <!-- jeecg tools -->
  142. <dependency>
  143. <groupId>org.jeecgframework.boot</groupId>
  144. <artifactId>jeecg-boot-common</artifactId>
  145. <version>${jeecgboot.version}</version>
  146. </dependency>
  147. <!-- jeecg core -->
  148. <dependency>
  149. <groupId>org.jeecgframework.boot</groupId>
  150. <artifactId>jeecg-boot-base-core</artifactId>
  151. <version>${jeecgboot.version}</version>
  152. </dependency>
  153. <!-- system 单体 api -->
  154. <dependency>
  155. <groupId>org.jeecgframework.boot</groupId>
  156. <artifactId>jeecg-system-local-api</artifactId>
  157. <version>${jeecgboot.version}</version>
  158. </dependency>
  159. <!-- system 微服务 api -->
  160. <dependency>
  161. <groupId>org.jeecgframework.boot</groupId>
  162. <artifactId>jeecg-system-cloud-api</artifactId>
  163. <version>${jeecgboot.version}</version>
  164. </dependency>
  165. <!--微服务启动依赖-->
  166. <dependency>
  167. <groupId>org.jeecgframework.boot</groupId>
  168. <artifactId>jeecg-boot-starter-cloud</artifactId>
  169. <version>${jeecgboot.version}</version>
  170. </dependency>
  171. <!--xxl-job定时任务-->
  172. <dependency>
  173. <groupId>org.jeecgframework.boot</groupId>
  174. <artifactId>jeecg-boot-starter-job</artifactId>
  175. <version>${jeecgboot.version}</version>
  176. </dependency>
  177. <!--redis分布式锁-->
  178. <dependency>
  179. <groupId>org.jeecgframework.boot</groupId>
  180. <artifactId>jeecg-boot-starter-lock</artifactId>
  181. <version>${jeecgboot.version}</version>
  182. </dependency>
  183. <!--rabbitmq消息队列-->
  184. <dependency>
  185. <groupId>org.jeecgframework.boot</groupId>
  186. <artifactId>jeecg-boot-starter-rabbitmq</artifactId>
  187. <version>${jeecgboot.version}</version>
  188. </dependency>
  189. <!--分库分表shardingsphere-->
  190. <dependency>
  191. <groupId>org.jeecgframework.boot</groupId>
  192. <artifactId>jeecg-boot-starter-shardingsphere</artifactId>
  193. <version>${jeecgboot.version}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.hibernate</groupId>
  197. <artifactId>hibernate-core</artifactId>
  198. <version>5.6.7.Final</version>
  199. <exclusions>
  200. <exclusion>
  201. <groupId>commons-collections</groupId>
  202. <artifactId>commons-collections</artifactId>
  203. </exclusion>
  204. </exclusions>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.jeecgframework.boot</groupId>
  208. <artifactId>hibernate-re</artifactId>
  209. <version>3.2.1-beta</version>
  210. </dependency>
  211. <!-- 七牛云SDK -->
  212. <dependency>
  213. <groupId>com.qiniu</groupId>
  214. <artifactId>qiniu-java-sdk</artifactId>
  215. <version>${qiniu-java-sdk.version}</version>
  216. <exclusions>
  217. <exclusion>
  218. <artifactId>okhttp</artifactId>
  219. <groupId>com.squareup.okhttp3</groupId>
  220. </exclusion>
  221. </exclusions>
  222. </dependency>
  223. <!-- dom4j -->
  224. <dependency>
  225. <groupId>dom4j</groupId>
  226. <artifactId>dom4j</artifactId>
  227. <version>${dom4j.version}</version>
  228. </dependency>
  229. <!-- fileupload -->
  230. <dependency>
  231. <groupId>commons-fileupload</groupId>
  232. <artifactId>commons-fileupload</artifactId>
  233. <version>1.4</version>
  234. <exclusions>
  235. <exclusion>
  236. <artifactId>commons-io</artifactId>
  237. <groupId>commons-io</groupId>
  238. </exclusion>
  239. </exclusions>
  240. </dependency>
  241. <!-- justauth第三方登录 -->
  242. <dependency>
  243. <groupId>com.xkcoding.justauth</groupId>
  244. <artifactId>justauth-spring-boot-starter</artifactId>
  245. <version>${justauth-spring-boot-starter.version}</version>
  246. <exclusions>
  247. <exclusion>
  248. <artifactId>hutool-core</artifactId>
  249. <groupId>cn.hutool</groupId>
  250. </exclusion>
  251. <exclusion>
  252. <artifactId>fastjson</artifactId>
  253. <groupId>com.alibaba</groupId>
  254. </exclusion>
  255. </exclusions>
  256. </dependency>
  257. <dependency>
  258. <groupId>com.squareup.okhttp3</groupId>
  259. <artifactId>okhttp</artifactId>
  260. <version>4.4.1</version>
  261. </dependency>
  262. <!--minio-->
  263. <dependency>
  264. <groupId>io.minio</groupId>
  265. <artifactId>minio</artifactId>
  266. <version>${minio.version}</version>
  267. <exclusions>
  268. <exclusion>
  269. <artifactId>okio</artifactId>
  270. <groupId>com.squareup.okio</groupId>
  271. </exclusion>
  272. <exclusion>
  273. <artifactId>okhttp</artifactId>
  274. <groupId>com.squareup.okhttp3</groupId>
  275. </exclusion>
  276. </exclusions>
  277. </dependency>
  278. <!-- 企业微信和钉钉 api -->
  279. <dependency>
  280. <groupId>org.jeecgframework</groupId>
  281. <artifactId>jeewx-api</artifactId>
  282. <version>1.4.8</version>
  283. <exclusions>
  284. <exclusion>
  285. <artifactId>commons-beanutils</artifactId>
  286. <groupId>commons-beanutils</groupId>
  287. </exclusion>
  288. <exclusion>
  289. <artifactId>commons-lang</artifactId>
  290. <groupId>commons-lang</groupId>
  291. </exclusion>
  292. </exclusions>
  293. </dependency>
  294. <!-- 积木报表-->
  295. <dependency>
  296. <groupId>org.jeecgframework.jimureport</groupId>
  297. <artifactId>jimureport-spring-boot-starter</artifactId>
  298. <version>${jimureport-spring-boot-starter.version}</version>
  299. <exclusions>
  300. <exclusion>
  301. <artifactId>autopoi-web</artifactId>
  302. <groupId>org.jeecgframework</groupId>
  303. </exclusion>
  304. </exclusions>
  305. </dependency>
  306. </dependencies>
  307. </dependencyManagement>
  308. <build>
  309. <plugins>
  310. <!-- 指定JDK编译版本 -->
  311. <plugin>
  312. <groupId>org.apache.maven.plugins</groupId>
  313. <artifactId>maven-compiler-plugin</artifactId>
  314. <configuration>
  315. <source>1.8</source>
  316. <target>1.8</target>
  317. <encoding>UTF-8</encoding>
  318. </configuration>
  319. </plugin>
  320. <!-- 打包跳过测试 -->
  321. <plugin>
  322. <groupId>org.apache.maven.plugins</groupId>
  323. <artifactId>maven-surefire-plugin</artifactId>
  324. <configuration>
  325. <skipTests>true</skipTests>
  326. </configuration>
  327. </plugin>
  328. <!-- 避免font文件的二进制文件格式压缩破坏 -->
  329. <plugin>
  330. <groupId>org.apache.maven.plugins</groupId>
  331. <artifactId>maven-resources-plugin</artifactId>
  332. <version>3.1.0</version>
  333. <configuration>
  334. <nonFilteredFileExtensions>
  335. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  336. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  337. <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  338. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  339. <nonFilteredFileExtension>svg</nonFilteredFileExtension>
  340. </nonFilteredFileExtensions>
  341. </configuration>
  342. </plugin>
  343. </plugins>
  344. <resources>
  345. <resource>
  346. <directory>src/main/resources</directory>
  347. <filtering>true</filtering>
  348. </resource>
  349. <resource>
  350. <directory>src/main/java</directory>
  351. <includes>
  352. <include>**/*.xml</include>
  353. <include>**/*.json</include>
  354. <include>**/*.ftl</include>
  355. </includes>
  356. </resource>
  357. </resources>
  358. </build>
  359. <distributionManagement>
  360. <repository>
  361. <id>jeecg</id>
  362. <name>jeecg Repository</name>
  363. <url>http://maven.jeecg.com:8090/nexus/content/repositories/jeecg</url>
  364. </repository>
  365. <snapshotRepository>
  366. <id>jeecg-snapshots</id>
  367. <name>jeecg Snapshot Repository</name>
  368. <url>http://maven.jeecg.com:8090/nexus/content/repositories/snapshots/</url>
  369. </snapshotRepository>
  370. </distributionManagement>
  371. <!-- 环境 -->
  372. <profiles>
  373. <!-- 开发 -->
  374. <profile>
  375. <id>dev</id>
  376. <activation>
  377. <!--默认激活配置-->
  378. <activeByDefault>true</activeByDefault>
  379. </activation>
  380. <properties>
  381. <!--当前环境-->
  382. <profile.name>dev</profile.name>
  383. <!--Nacos服务地址-->
  384. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  385. </properties>
  386. </profile>
  387. <!-- 测试 -->
  388. <profile>
  389. <id>test</id>
  390. <properties>
  391. <!--当前环境-->
  392. <profile.name>test</profile.name>
  393. <!--Nacos服务地址-->
  394. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  395. </properties>
  396. </profile>
  397. <!-- 生产 -->
  398. <profile>
  399. <id>prod</id>
  400. <properties>
  401. <!--当前环境-->
  402. <profile.name>prod</profile.name>
  403. <!--Nacos服务地址-->
  404. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  405. </properties>
  406. </profile>
  407. <!-- SpringCloud运行环境 -->
  408. <profile>
  409. <id>SpringCloud</id>
  410. <properties>
  411. <!--微服务模式下修改为true, system模块跳过打包插件,否则微服务无法引用-->
  412. <skip.springboot.maven>true</skip.springboot.maven>
  413. </properties>
  414. <modules>
  415. <!-- 微服务模块-->
  416. <module>jeecg-cloud-module</module>
  417. </modules>
  418. </profile>
  419. </profiles>
  420. </project>