pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-test</artifactId>
  94. <scope>test</scope>
  95. </dependency>
  96. <!-- Lombok -->
  97. <dependency>
  98. <groupId>org.projectlombok</groupId>
  99. <artifactId>lombok</artifactId>
  100. </dependency>
  101. <!-- json -->
  102. <dependency>
  103. <groupId>com.alibaba</groupId>
  104. <artifactId>fastjson</artifactId>
  105. <version>${fastjson.version}</version>
  106. </dependency>
  107. </dependencies>
  108. <dependencyManagement>
  109. <dependencies>
  110. <!-- spring-cloud-->
  111. <dependency>
  112. <groupId>org.springframework.cloud</groupId>
  113. <artifactId>spring-cloud-dependencies</artifactId>
  114. <version>${spring-cloud.version}</version>
  115. <type>pom</type>
  116. <scope>import</scope>
  117. </dependency>
  118. <!-- spring-cloud-alibaba -->
  119. <dependency>
  120. <groupId>com.alibaba.cloud</groupId>
  121. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  122. <version>${spring-cloud-alibaba.version}</version>
  123. <type>pom</type>
  124. <scope>import</scope>
  125. </dependency>
  126. <!-- system 模块-->
  127. <dependency>
  128. <groupId>org.jeecgframework.boot</groupId>
  129. <artifactId>jeecg-boot-module-system</artifactId>
  130. <version>${jeecgboot.version}</version>
  131. </dependency>
  132. <!-- jeecg tools -->
  133. <dependency>
  134. <groupId>org.jeecgframework.boot</groupId>
  135. <artifactId>jeecg-boot-base-tools</artifactId>
  136. <version>${jeecgboot.version}</version>
  137. </dependency>
  138. <!-- jeecg core -->
  139. <dependency>
  140. <groupId>org.jeecgframework.boot</groupId>
  141. <artifactId>jeecg-boot-base-core</artifactId>
  142. <version>${jeecgboot.version}</version>
  143. </dependency>
  144. <!-- system 单体 api -->
  145. <dependency>
  146. <groupId>org.jeecgframework.boot</groupId>
  147. <artifactId>jeecg-system-local-api</artifactId>
  148. <version>${jeecgboot.version}</version>
  149. </dependency>
  150. <!-- system 微服务 api -->
  151. <dependency>
  152. <groupId>org.jeecgframework.boot</groupId>
  153. <artifactId>jeecg-system-cloud-api</artifactId>
  154. <version>${jeecgboot.version}</version>
  155. </dependency>
  156. <!--微服务模块-->
  157. <dependency>
  158. <groupId>org.jeecgframework.boot</groupId>
  159. <artifactId>jeecg-boot-starter-cloud</artifactId>
  160. <version>${jeecgboot.version}</version>
  161. </dependency>
  162. <!--xxl-job定时任务-->
  163. <dependency>
  164. <groupId>org.jeecgframework.boot</groupId>
  165. <artifactId>jeecg-boot-starter-job</artifactId>
  166. <version>${jeecgboot.version}</version>
  167. </dependency>
  168. <!--redis分布式锁-->
  169. <dependency>
  170. <groupId>org.jeecgframework.boot</groupId>
  171. <artifactId>jeecg-boot-starter-lock</artifactId>
  172. <version>${jeecgboot.version}</version>
  173. </dependency>
  174. <!--rabbitmq消息队列-->
  175. <dependency>
  176. <groupId>org.jeecgframework.boot</groupId>
  177. <artifactId>jeecg-boot-starter-rabbitmq</artifactId>
  178. <version>${jeecgboot.version}</version>
  179. </dependency>
  180. <!-- 七牛云SDK -->
  181. <dependency>
  182. <groupId>com.qiniu</groupId>
  183. <artifactId>qiniu-java-sdk</artifactId>
  184. <version>${qiniu-java-sdk.version}</version>
  185. <exclusions>
  186. <exclusion>
  187. <artifactId>okhttp</artifactId>
  188. <groupId>com.squareup.okhttp3</groupId>
  189. </exclusion>
  190. </exclusions>
  191. </dependency>
  192. <!-- dom4j -->
  193. <dependency>
  194. <groupId>dom4j</groupId>
  195. <artifactId>dom4j</artifactId>
  196. <version>${dom4j.version}</version>
  197. </dependency>
  198. <!-- redisson -->
  199. <dependency>
  200. <groupId>org.redisson</groupId>
  201. <artifactId>redisson</artifactId>
  202. <version>${redisson.version}</version>
  203. </dependency>
  204. <!-- guava工具类 -->
  205. <dependency>
  206. <groupId>com.google.guava</groupId>
  207. <artifactId>guava</artifactId>
  208. <version>${guava.version}</version>
  209. </dependency>
  210. <!-- hutool工具类-->
  211. <dependency>
  212. <groupId>cn.hutool</groupId>
  213. <artifactId>hutool-core</artifactId>
  214. <version>${hutool.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>cn.hutool</groupId>
  218. <artifactId>hutool-crypto</artifactId>
  219. <version>${hutool.version}</version>
  220. </dependency>
  221. <!-- commons-beanutils -->
  222. <dependency>
  223. <groupId>commons-beanutils</groupId>
  224. <artifactId>commons-beanutils</artifactId>
  225. <version>${commons-beanutils.version}</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>commons-fileupload</groupId>
  229. <artifactId>commons-fileupload</artifactId>
  230. <version>1.4</version>
  231. <exclusions>
  232. <exclusion>
  233. <artifactId>commons-io</artifactId>
  234. <groupId>commons-io</groupId>
  235. </exclusion>
  236. </exclusions>
  237. </dependency>
  238. <!-- justauth第三方登录 -->
  239. <dependency>
  240. <groupId>com.xkcoding.justauth</groupId>
  241. <artifactId>justauth-spring-boot-starter</artifactId>
  242. <version>${justauth-spring-boot-starter.version}</version>
  243. <exclusions>
  244. <exclusion>
  245. <artifactId>hutool-core</artifactId>
  246. <groupId>cn.hutool</groupId>
  247. </exclusion>
  248. <exclusion>
  249. <artifactId>fastjson</artifactId>
  250. <groupId>com.alibaba</groupId>
  251. </exclusion>
  252. </exclusions>
  253. </dependency>
  254. <dependency>
  255. <groupId>com.squareup.okhttp3</groupId>
  256. <artifactId>okhttp</artifactId>
  257. <version>4.4.1</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>io.minio</groupId>
  261. <artifactId>minio</artifactId>
  262. <version>${minio.version}</version>
  263. <exclusions>
  264. <exclusion>
  265. <artifactId>okio</artifactId>
  266. <groupId>com.squareup.okio</groupId>
  267. </exclusion>
  268. <exclusion>
  269. <artifactId>okhttp</artifactId>
  270. <groupId>com.squareup.okhttp3</groupId>
  271. </exclusion>
  272. </exclusions>
  273. </dependency>
  274. <!-- 二维码工具类 -->
  275. <dependency>
  276. <groupId>com.google.zxing</groupId>
  277. <artifactId>core</artifactId>
  278. <version>3.2.0</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>com.google.zxing</groupId>
  282. <artifactId>javase</artifactId>
  283. <version>3.2.0</version>
  284. </dependency>
  285. </dependencies>
  286. </dependencyManagement>
  287. <build>
  288. <plugins>
  289. <!-- 指定JDK编译版本 -->
  290. <plugin>
  291. <groupId>org.apache.maven.plugins</groupId>
  292. <artifactId>maven-compiler-plugin</artifactId>
  293. <configuration>
  294. <source>1.8</source>
  295. <target>1.8</target>
  296. <encoding>UTF-8</encoding>
  297. </configuration>
  298. </plugin>
  299. <!-- 打包跳过测试 -->
  300. <plugin>
  301. <groupId>org.apache.maven.plugins</groupId>
  302. <artifactId>maven-surefire-plugin</artifactId>
  303. <configuration>
  304. <skipTests>true</skipTests>
  305. </configuration>
  306. </plugin>
  307. <!-- 避免font文件的二进制文件格式压缩破坏 -->
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-resources-plugin</artifactId>
  311. <configuration>
  312. <nonFilteredFileExtensions>
  313. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  314. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  315. <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  316. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  317. <nonFilteredFileExtension>svg</nonFilteredFileExtension>
  318. </nonFilteredFileExtensions>
  319. </configuration>
  320. </plugin>
  321. </plugins>
  322. <resources>
  323. <resource>
  324. <directory>src/main/resources</directory>
  325. <filtering>true</filtering>
  326. </resource>
  327. <resource>
  328. <directory>src/main/java</directory>
  329. <includes>
  330. <include>**/*.xml</include>
  331. <include>**/*.json</include>
  332. <include>**/*.ftl</include>
  333. </includes>
  334. </resource>
  335. </resources>
  336. </build>
  337. <!-- 环境 -->
  338. <profiles>
  339. <!-- 开发 -->
  340. <profile>
  341. <id>dev</id>
  342. <activation>
  343. <!--默认激活配置-->
  344. <activeByDefault>true</activeByDefault>
  345. </activation>
  346. <properties>
  347. <!--当前环境-->
  348. <profile.name>dev</profile.name>
  349. <!--配置文件前缀-->
  350. <prefix.name>jeecg</prefix.name>
  351. <!--Nacos配置中心地址-->
  352. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  353. <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
  354. <config.namespace></config.namespace>
  355. <!--Nacos用户名-->
  356. <config.username>nacos</config.username>
  357. <!--Nacos密码-->
  358. <config.password>nacos</config.password>
  359. <!--Nacos配置分组名称-->
  360. <config.group>DEFAULT_GROUP</config.group>
  361. <!--Nacos服务发现地址-->
  362. <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
  363. </properties>
  364. </profile>
  365. <!-- 测试 -->
  366. <profile>
  367. <id>test</id>
  368. <properties>
  369. <!--当前环境-->
  370. <profile.name>test</profile.name>
  371. <!--配置文件前缀-->
  372. <prefix.name>jeecg</prefix.name>
  373. <!--Nacos配置中心地址-->
  374. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  375. <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
  376. <config.namespace></config.namespace>
  377. <!--Nacos用户名-->
  378. <config.username>nacos</config.username>
  379. <!--Nacos密码-->
  380. <config.password>nacos</config.password>
  381. <!--Nacos配置分组名称-->
  382. <config.group>DEFAULT_GROUP</config.group>
  383. <!--Nacos服务发现地址-->
  384. <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
  385. </properties>
  386. </profile>
  387. <!-- 生产 -->
  388. <profile>
  389. <id>prod</id>
  390. <properties>
  391. <!--当前环境,生产环境为空-->
  392. <profile.name>prod</profile.name>
  393. <!--配置文件前缀-->
  394. <prefix.name>jeecg</prefix.name>
  395. <!--Nacos配置中心地址-->
  396. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  397. <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
  398. <config.namespace></config.namespace>
  399. <!--Nacos用户名-->
  400. <config.username>nacos</config.username>
  401. <!--Nacos密码-->
  402. <config.password>nacos</config.password>
  403. <!--Nacos配置分组名称-->
  404. <config.group>DEFAULT_GROUP</config.group>
  405. <!--Nacos服务发现地址-->
  406. <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
  407. </properties>
  408. </profile>
  409. <!-- SpringCloud运行环境 -->
  410. <profile>
  411. <id>SpringCloud</id>
  412. <properties>
  413. <!--微服务模式下修改为true, system模块跳过打包插件,否则微服务无法引用-->
  414. <skip.springboot.maven>true</skip.springboot.maven>
  415. </properties>
  416. <modules>
  417. <!-- 微服务模块 -->
  418. <module>jeecg-boot-starter</module>
  419. <module>jeecg-cloud-module</module>
  420. </modules>
  421. </profile>
  422. </profiles>
  423. </project>