pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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. </dependencies>
  275. </dependencyManagement>
  276. <build>
  277. <plugins>
  278. <!-- 指定JDK编译版本 -->
  279. <plugin>
  280. <groupId>org.apache.maven.plugins</groupId>
  281. <artifactId>maven-compiler-plugin</artifactId>
  282. <configuration>
  283. <source>1.8</source>
  284. <target>1.8</target>
  285. <encoding>UTF-8</encoding>
  286. </configuration>
  287. </plugin>
  288. <!-- 打包跳过测试 -->
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-surefire-plugin</artifactId>
  292. <configuration>
  293. <skipTests>true</skipTests>
  294. </configuration>
  295. </plugin>
  296. <!-- 避免font文件的二进制文件格式压缩破坏 -->
  297. <plugin>
  298. <groupId>org.apache.maven.plugins</groupId>
  299. <artifactId>maven-resources-plugin</artifactId>
  300. <configuration>
  301. <nonFilteredFileExtensions>
  302. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  303. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  304. <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  305. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  306. <nonFilteredFileExtension>svg</nonFilteredFileExtension>
  307. </nonFilteredFileExtensions>
  308. </configuration>
  309. </plugin>
  310. </plugins>
  311. <resources>
  312. <resource>
  313. <directory>src/main/resources</directory>
  314. <filtering>true</filtering>
  315. </resource>
  316. <resource>
  317. <directory>src/main/java</directory>
  318. <includes>
  319. <include>**/*.xml</include>
  320. <include>**/*.json</include>
  321. <include>**/*.ftl</include>
  322. </includes>
  323. </resource>
  324. </resources>
  325. </build>
  326. <!-- 环境 -->
  327. <profiles>
  328. <!-- 开发 -->
  329. <profile>
  330. <id>dev</id>
  331. <activation>
  332. <!--默认激活配置-->
  333. <activeByDefault>true</activeByDefault>
  334. </activation>
  335. <properties>
  336. <!--当前环境-->
  337. <profile.name>dev</profile.name>
  338. <!--配置文件前缀-->
  339. <prefix.name>jeecg</prefix.name>
  340. <!--Nacos配置中心地址-->
  341. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  342. <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
  343. <config.namespace></config.namespace>
  344. <!--Nacos用户名-->
  345. <config.username>nacos</config.username>
  346. <!--Nacos密码-->
  347. <config.password>nacos</config.password>
  348. <!--Nacos配置分组名称-->
  349. <config.group>DEFAULT_GROUP</config.group>
  350. <!--Nacos服务发现地址-->
  351. <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
  352. </properties>
  353. </profile>
  354. <!-- 测试 -->
  355. <profile>
  356. <id>test</id>
  357. <properties>
  358. <!--当前环境-->
  359. <profile.name>test</profile.name>
  360. <!--配置文件前缀-->
  361. <prefix.name>jeecg</prefix.name>
  362. <!--Nacos配置中心地址-->
  363. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  364. <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
  365. <config.namespace></config.namespace>
  366. <!--Nacos用户名-->
  367. <config.username>nacos</config.username>
  368. <!--Nacos密码-->
  369. <config.password>nacos</config.password>
  370. <!--Nacos配置分组名称-->
  371. <config.group>DEFAULT_GROUP</config.group>
  372. <!--Nacos服务发现地址-->
  373. <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
  374. </properties>
  375. </profile>
  376. <!-- 生产 -->
  377. <profile>
  378. <id>prod</id>
  379. <properties>
  380. <!--当前环境,生产环境为空-->
  381. <profile.name>prod</profile.name>
  382. <!--配置文件前缀-->
  383. <prefix.name>jeecg</prefix.name>
  384. <!--Nacos配置中心地址-->
  385. <config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
  386. <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
  387. <config.namespace></config.namespace>
  388. <!--Nacos用户名-->
  389. <config.username>nacos</config.username>
  390. <!--Nacos密码-->
  391. <config.password>nacos</config.password>
  392. <!--Nacos配置分组名称-->
  393. <config.group>DEFAULT_GROUP</config.group>
  394. <!--Nacos服务发现地址-->
  395. <discovery.server-addr>jeecg-boot-nacos:8848</discovery.server-addr>
  396. </properties>
  397. </profile>
  398. <!-- SpringCloud运行环境 -->
  399. <profile>
  400. <id>SpringCloud</id>
  401. <properties>
  402. <!--微服务模式下修改为true, system模块跳过打包插件,否则微服务无法引用-->
  403. <skip.springboot.maven>true</skip.springboot.maven>
  404. </properties>
  405. <modules>
  406. <!-- 微服务模块 -->
  407. <module>jeecg-boot-starter</module>
  408. <module>jeecg-cloud-module</module>
  409. </modules>
  410. </profile>
  411. </profiles>
  412. </project>