pom.xml 16 KB

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