pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.dromara</groupId>
  7. <artifactId>ruoyi-vue-plus</artifactId>
  8. <version>${revision}</version>
  9. <name>RuoYi-Vue-Plus</name>
  10. <description>RuoYi-Vue-Plus多租户管理系统</description>
  11. <properties>
  12. <revision>1.0.0</revision>
  13. <spring-boot.version>3.1.7</spring-boot.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <java.version>17</java.version>
  17. <spring-boot.mybatis>3.0.3</spring-boot.mybatis>
  18. <springdoc.version>2.2.0</springdoc.version>
  19. <therapi-javadoc.version>0.15.0</therapi-javadoc.version>
  20. <poi.version>5.2.3</poi.version>
  21. <easyexcel.version>3.3.3</easyexcel.version>
  22. <velocity.version>2.3</velocity.version>
  23. <satoken.version>1.37.0</satoken.version>
  24. <mybatis-plus.version>3.5.4</mybatis-plus.version>
  25. <p6spy.version>3.9.1</p6spy.version>
  26. <hutool.version>5.8.22</hutool.version>
  27. <okhttp.version>4.10.0</okhttp.version>
  28. <spring-boot-admin.version>3.1.8</spring-boot-admin.version>
  29. <redisson.version>3.24.3</redisson.version>
  30. <lock4j.version>2.2.5</lock4j.version>
  31. <dynamic-ds.version>4.2.0</dynamic-ds.version>
  32. <alibaba-ttl.version>2.14.4</alibaba-ttl.version>
  33. <powerjob.version>4.3.6</powerjob.version>
  34. <mapstruct-plus.version>1.3.5</mapstruct-plus.version>
  35. <mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
  36. <lombok.version>1.18.30</lombok.version>
  37. <bouncycastle.version>1.76</bouncycastle.version>
  38. <justauth.version>1.16.6</justauth.version>
  39. <!-- 离线IP地址定位库 -->
  40. <ip2region.version>2.7.0</ip2region.version>
  41. <!-- OSS 配置 -->
  42. <aws-java-sdk-s3.version>1.12.600</aws-java-sdk-s3.version>
  43. <!-- SMS 配置 -->
  44. <sms4j.version>2.2.0</sms4j.version>
  45. <!-- 限制框架中的fastjson版本 -->
  46. <fastjson.version>1.2.83</fastjson.version>
  47. <!-- 插件版本 -->
  48. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  49. <maven-war-plugin.version>3.2.2</maven-war-plugin.version>
  50. <maven-compiler-plugin.verison>3.11.0</maven-compiler-plugin.verison>
  51. <maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
  52. <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
  53. </properties>
  54. <profiles>
  55. <profile>
  56. <id>local</id>
  57. <properties>
  58. <!-- 环境标识,需要与配置文件的名称相对应 -->
  59. <profiles.active>local</profiles.active>
  60. <logging.level>info</logging.level>
  61. </properties>
  62. </profile>
  63. <profile>
  64. <id>dev</id>
  65. <properties>
  66. <!-- 环境标识,需要与配置文件的名称相对应 -->
  67. <profiles.active>dev</profiles.active>
  68. <logging.level>info</logging.level>
  69. </properties>
  70. <activation>
  71. <!-- 默认环境 -->
  72. <activeByDefault>true</activeByDefault>
  73. </activation>
  74. </profile>
  75. <profile>
  76. <id>prod</id>
  77. <properties>
  78. <profiles.active>prod</profiles.active>
  79. <logging.level>warn</logging.level>
  80. </properties>
  81. </profile>
  82. </profiles>
  83. <!-- 依赖声明 -->
  84. <dependencyManagement>
  85. <dependencies>
  86. <!-- SpringBoot的依赖配置-->
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-dependencies</artifactId>
  90. <version>${spring-boot.version}</version>
  91. <type>pom</type>
  92. <scope>import</scope>
  93. </dependency>
  94. <!-- hutool 的依赖配置-->
  95. <dependency>
  96. <groupId>cn.hutool</groupId>
  97. <artifactId>hutool-bom</artifactId>
  98. <version>${hutool.version}</version>
  99. <type>pom</type>
  100. <scope>import</scope>
  101. </dependency>
  102. <!-- JustAuth 的依赖配置-->
  103. <dependency>
  104. <groupId>me.zhyd.oauth</groupId>
  105. <artifactId>JustAuth</artifactId>
  106. <version>${justauth.version}</version>
  107. </dependency>
  108. <!-- common 的依赖配置-->
  109. <dependency>
  110. <groupId>org.dromara</groupId>
  111. <artifactId>ruoyi-common-bom</artifactId>
  112. <version>${revision}</version>
  113. <type>pom</type>
  114. <scope>import</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springdoc</groupId>
  118. <artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
  119. <version>${springdoc.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.github.therapi</groupId>
  123. <artifactId>therapi-runtime-javadoc</artifactId>
  124. <version>${therapi-javadoc.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.projectlombok</groupId>
  128. <artifactId>lombok</artifactId>
  129. <version>${lombok.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.poi</groupId>
  133. <artifactId>poi</artifactId>
  134. <version>${poi.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.poi</groupId>
  138. <artifactId>poi-ooxml</artifactId>
  139. <version>${poi.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.alibaba</groupId>
  143. <artifactId>easyexcel</artifactId>
  144. <version>${easyexcel.version}</version>
  145. <exclusions>
  146. <exclusion>
  147. <groupId>org.apache.poi</groupId>
  148. <artifactId>poi-ooxml-schemas</artifactId>
  149. </exclusion>
  150. </exclusions>
  151. </dependency>
  152. <!-- velocity代码生成使用模板 -->
  153. <dependency>
  154. <groupId>org.apache.velocity</groupId>
  155. <artifactId>velocity-engine-core</artifactId>
  156. <version>${velocity.version}</version>
  157. </dependency>
  158. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  159. <dependency>
  160. <groupId>cn.dev33</groupId>
  161. <artifactId>sa-token-spring-boot3-starter</artifactId>
  162. <version>${satoken.version}</version>
  163. </dependency>
  164. <!-- Sa-Token 整合 jwt -->
  165. <dependency>
  166. <groupId>cn.dev33</groupId>
  167. <artifactId>sa-token-jwt</artifactId>
  168. <version>${satoken.version}</version>
  169. <exclusions>
  170. <exclusion>
  171. <groupId>cn.hutool</groupId>
  172. <artifactId>hutool-all</artifactId>
  173. </exclusion>
  174. </exclusions>
  175. </dependency>
  176. <dependency>
  177. <groupId>cn.dev33</groupId>
  178. <artifactId>sa-token-core</artifactId>
  179. <version>${satoken.version}</version>
  180. </dependency>
  181. <!-- dynamic-datasource 多数据源-->
  182. <dependency>
  183. <groupId>com.baomidou</groupId>
  184. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  185. <version>${dynamic-ds.version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.mybatis.spring.boot</groupId>
  189. <artifactId>mybatis-spring-boot-starter</artifactId>
  190. <version>${spring-boot.mybatis}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>com.baomidou</groupId>
  194. <artifactId>mybatis-plus-boot-starter</artifactId>
  195. <version>${mybatis-plus.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.baomidou</groupId>
  199. <artifactId>mybatis-plus-annotation</artifactId>
  200. <version>${mybatis-plus.version}</version>
  201. </dependency>
  202. <!-- sql性能分析插件 -->
  203. <dependency>
  204. <groupId>p6spy</groupId>
  205. <artifactId>p6spy</artifactId>
  206. <version>${p6spy.version}</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>com.squareup.okhttp3</groupId>
  210. <artifactId>okhttp</artifactId>
  211. <version>${okhttp.version}</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.amazonaws</groupId>
  215. <artifactId>aws-java-sdk-s3</artifactId>
  216. <version>${aws-java-sdk-s3.version}</version>
  217. </dependency>
  218. <!--短信sms4j-->
  219. <dependency>
  220. <groupId>org.dromara.sms4j</groupId>
  221. <artifactId>sms4j-spring-boot-starter</artifactId>
  222. <version>${sms4j.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>de.codecentric</groupId>
  226. <artifactId>spring-boot-admin-starter-server</artifactId>
  227. <version>${spring-boot-admin.version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>de.codecentric</groupId>
  231. <artifactId>spring-boot-admin-starter-client</artifactId>
  232. <version>${spring-boot-admin.version}</version>
  233. </dependency>
  234. <!--redisson-->
  235. <dependency>
  236. <groupId>org.redisson</groupId>
  237. <artifactId>redisson-spring-boot-starter</artifactId>
  238. <version>${redisson.version}</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>com.baomidou</groupId>
  242. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  243. <version>${lock4j.version}</version>
  244. </dependency>
  245. <!-- PowerJob -->
  246. <dependency>
  247. <groupId>tech.powerjob</groupId>
  248. <artifactId>powerjob-worker-spring-boot-starter</artifactId>
  249. <version>${powerjob.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>tech.powerjob</groupId>
  253. <artifactId>powerjob-official-processors</artifactId>
  254. <version>${powerjob.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>com.alibaba</groupId>
  258. <artifactId>transmittable-thread-local</artifactId>
  259. <version>${alibaba-ttl.version}</version>
  260. </dependency>
  261. <!-- 加密包引入 -->
  262. <dependency>
  263. <groupId>org.bouncycastle</groupId>
  264. <artifactId>bcprov-jdk15to18</artifactId>
  265. <version>${bouncycastle.version}</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>io.github.linpeilie</groupId>
  269. <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
  270. <version>${mapstruct-plus.version}</version>
  271. </dependency>
  272. <!-- 离线IP地址定位库 ip2region -->
  273. <dependency>
  274. <groupId>org.lionsoul</groupId>
  275. <artifactId>ip2region</artifactId>
  276. <version>${ip2region.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>com.alibaba</groupId>
  280. <artifactId>fastjson</artifactId>
  281. <version>${fastjson.version}</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.dromara</groupId>
  285. <artifactId>base-starter</artifactId>
  286. <version>${revision}</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>org.dromara</groupId>
  290. <artifactId>ruoyi-system</artifactId>
  291. <version>${revision}</version>
  292. </dependency>
  293. </dependencies>
  294. </dependencyManagement>
  295. <modules>
  296. <module>base-starter</module>
  297. <module>ruoyi-common</module>
  298. <module>ruoyi-system</module>
  299. <module>my-test</module>
  300. </modules>
  301. <packaging>pom</packaging>
  302. <build>
  303. <plugins>
  304. <plugin>
  305. <groupId>org.apache.maven.plugins</groupId>
  306. <artifactId>maven-compiler-plugin</artifactId>
  307. <version>${maven-compiler-plugin.verison}</version>
  308. <configuration>
  309. <source>${java.version}</source>
  310. <target>${java.version}</target>
  311. <encoding>${project.build.sourceEncoding}</encoding>
  312. <annotationProcessorPaths>
  313. <path>
  314. <groupId>com.github.therapi</groupId>
  315. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  316. <version>${therapi-javadoc.version}</version>
  317. </path>
  318. <path>
  319. <groupId>org.projectlombok</groupId>
  320. <artifactId>lombok</artifactId>
  321. <version>${lombok.version}</version>
  322. </path>
  323. <path>
  324. <groupId>org.springframework.boot</groupId>
  325. <artifactId>spring-boot-configuration-processor</artifactId>
  326. <version>${spring-boot.version}</version>
  327. </path>
  328. <path>
  329. <groupId>io.github.linpeilie</groupId>
  330. <artifactId>mapstruct-plus-processor</artifactId>
  331. <version>${mapstruct-plus.version}</version>
  332. </path>
  333. <path>
  334. <groupId>org.projectlombok</groupId>
  335. <artifactId>lombok-mapstruct-binding</artifactId>
  336. <version>${mapstruct-plus.lombok.version}</version>
  337. </path>
  338. </annotationProcessorPaths>
  339. <compilerArgs>
  340. <arg>-parameters</arg>
  341. </compilerArgs>
  342. </configuration>
  343. </plugin>
  344. <!-- 统一版本号管理 -->
  345. <plugin>
  346. <groupId>org.codehaus.mojo</groupId>
  347. <artifactId>flatten-maven-plugin</artifactId>
  348. <version>${flatten-maven-plugin.version}</version>
  349. <configuration>
  350. <updatePomFile>true</updatePomFile>
  351. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  352. </configuration>
  353. <executions>
  354. <execution>
  355. <id>flatten</id>
  356. <phase>process-resources</phase>
  357. <goals>
  358. <goal>flatten</goal>
  359. </goals>
  360. </execution>
  361. <execution>
  362. <id>flatten.clean</id>
  363. <phase>clean</phase>
  364. <goals>
  365. <goal>clean</goal>
  366. </goals>
  367. </execution>
  368. </executions>
  369. </plugin>
  370. <plugin>
  371. <groupId>org.apache.maven.plugins</groupId>
  372. <artifactId>maven-source-plugin</artifactId>
  373. <executions>
  374. <execution>
  375. <id>attach-sources</id>
  376. <goals>
  377. <goal>jar</goal>
  378. </goals>
  379. </execution>
  380. </executions>
  381. </plugin>
  382. </plugins>
  383. <resources>
  384. <resource>
  385. <directory>src/main/resources</directory>
  386. <!-- 关闭过滤 -->
  387. <filtering>false</filtering>
  388. </resource>
  389. <resource>
  390. <directory>src/main/resources</directory>
  391. <!-- 引入所有 匹配文件进行过滤 -->
  392. <includes>
  393. <include>application*</include>
  394. <include>bootstrap*</include>
  395. <include>banner*</include>
  396. </includes>
  397. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  398. <filtering>true</filtering>
  399. </resource>
  400. </resources>
  401. </build>
  402. <repositories>
  403. <repository>
  404. <id>public</id>
  405. <name>huawei nexus</name>
  406. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  407. <releases>
  408. <enabled>true</enabled>
  409. </releases>
  410. </repository>
  411. </repositories>
  412. <pluginRepositories>
  413. <pluginRepository>
  414. <id>public</id>
  415. <name>huawei nexus</name>
  416. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  417. <releases>
  418. <enabled>true</enabled>
  419. </releases>
  420. <snapshots>
  421. <enabled>false</enabled>
  422. </snapshots>
  423. </pluginRepository>
  424. </pluginRepositories>
  425. </project>