pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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>com.ruoyi</groupId>
  7. <artifactId>ruoyi-vue-plus</artifactId>
  8. <version>3.0.0</version>
  9. <name>RuoYi-Vue-Plus</name>
  10. <url>https://gitee.com/JavaLionLi/RuoYi-Vue-Plus</url>
  11. <description>RuoYi-Vue-Plus后台管理系统</description>
  12. <properties>
  13. <ruoyi-vue-plus.version>3.0.0</ruoyi-vue-plus.version>
  14. <spring-boot.version>2.5.4</spring-boot.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <java.version>1.8</java.version>
  18. <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  19. <druid.version>1.2.6</druid.version>
  20. <knife4j.version>3.0.3</knife4j.version>
  21. <poi.version>4.1.2</poi.version>
  22. <easyexcel.version>2.2.10</easyexcel.version>
  23. <velocity.version>1.7</velocity.version>
  24. <jwt.version>0.9.1</jwt.version>
  25. <mybatis-plus.version>3.4.3</mybatis-plus.version>
  26. <p6spy.version>3.9.1</p6spy.version>
  27. <hutool.version>5.7.11</hutool.version>
  28. <feign.version>3.0.3</feign.version>
  29. <feign-okhttp.version>11.6</feign-okhttp.version>
  30. <okhttp.version>4.9.1</okhttp.version>
  31. <spring-boot-admin.version>2.5.1</spring-boot-admin.version>
  32. <redisson.version>3.16.1</redisson.version>
  33. <lock4j.version>2.2.1</lock4j.version>
  34. <dynamic-ds.version>3.4.1</dynamic-ds.version>
  35. <!-- OSS 配置 -->
  36. <qiniu.version>7.8.0</qiniu.version>
  37. <aliyun.oss.version>3.13.1</aliyun.oss.version>
  38. <qcloud.cos.version>5.6.51</qcloud.cos.version>
  39. <minio.version>8.3.0</minio.version>
  40. <!-- docker 配置 -->
  41. <docker.registry.url>localhost</docker.registry.url>
  42. <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
  43. <docker.namespace>ruoyi</docker.namespace>
  44. <docker.plugin.version>1.2.2</docker.plugin.version>
  45. </properties>
  46. <!-- 依赖声明 -->
  47. <dependencyManagement>
  48. <dependencies>
  49. <!-- SpringBoot的依赖配置-->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-dependencies</artifactId>
  53. <version>${spring-boot.version}</version>
  54. <type>pom</type>
  55. <scope>import</scope>
  56. </dependency>
  57. <!-- 阿里数据库连接池 -->
  58. <dependency>
  59. <groupId>com.alibaba</groupId>
  60. <artifactId>druid-spring-boot-starter</artifactId>
  61. <version>${druid.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.github.xiaoymin</groupId>
  65. <artifactId>knife4j-spring-boot-starter</artifactId>
  66. <version>${knife4j.version}</version>
  67. </dependency>
  68. <!-- excel工具 -->
  69. <dependency>
  70. <groupId>org.apache.poi</groupId>
  71. <artifactId>poi-ooxml</artifactId>
  72. <version>${poi.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.alibaba</groupId>
  76. <artifactId>easyexcel</artifactId>
  77. <version>${easyexcel.version}</version>
  78. </dependency>
  79. <!-- velocity代码生成使用模板 -->
  80. <dependency>
  81. <groupId>org.apache.velocity</groupId>
  82. <artifactId>velocity</artifactId>
  83. <version>${velocity.version}</version>
  84. </dependency>
  85. <!-- Token生成与解析-->
  86. <dependency>
  87. <groupId>io.jsonwebtoken</groupId>
  88. <artifactId>jjwt</artifactId>
  89. <version>${jwt.version}</version>
  90. </dependency>
  91. <!-- dynamic-datasource 多数据源-->
  92. <dependency>
  93. <groupId>com.baomidou</groupId>
  94. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  95. <version>${dynamic-ds.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.baomidou</groupId>
  99. <artifactId>mybatis-plus-boot-starter</artifactId>
  100. <version>${mybatis-plus.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.baomidou</groupId>
  104. <artifactId>mybatis-plus-extension</artifactId>
  105. <version>${mybatis-plus.version}</version>
  106. </dependency>
  107. <!-- sql性能分析插件 -->
  108. <dependency>
  109. <groupId>p6spy</groupId>
  110. <artifactId>p6spy</artifactId>
  111. <version>${p6spy.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>cn.hutool</groupId>
  115. <artifactId>hutool-all</artifactId>
  116. <version>${hutool.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework.cloud</groupId>
  120. <artifactId>spring-cloud-starter-openfeign</artifactId>
  121. <version>${feign.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>io.github.openfeign</groupId>
  125. <artifactId>feign-okhttp</artifactId>
  126. <version>${feign-okhttp.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.squareup.okhttp3</groupId>
  130. <artifactId>okhttp</artifactId>
  131. <version>${okhttp.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>de.codecentric</groupId>
  135. <artifactId>spring-boot-admin-starter-server</artifactId>
  136. <version>${spring-boot-admin.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>de.codecentric</groupId>
  140. <artifactId>spring-boot-admin-starter-client</artifactId>
  141. <version>${spring-boot-admin.version}</version>
  142. </dependency>
  143. <!--redisson-->
  144. <dependency>
  145. <groupId>org.redisson</groupId>
  146. <artifactId>redisson-spring-boot-starter</artifactId>
  147. <version>${redisson.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.baomidou</groupId>
  151. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  152. <version>${lock4j.version}</version>
  153. </dependency>
  154. <!-- 定时任务-->
  155. <dependency>
  156. <groupId>com.ruoyi</groupId>
  157. <artifactId>ruoyi-quartz</artifactId>
  158. <version>${ruoyi-vue-plus.version}</version>
  159. </dependency>
  160. <!-- 代码生成-->
  161. <dependency>
  162. <groupId>com.ruoyi</groupId>
  163. <artifactId>ruoyi-generator</artifactId>
  164. <version>${ruoyi-vue-plus.version}</version>
  165. </dependency>
  166. <!-- 核心模块-->
  167. <dependency>
  168. <groupId>com.ruoyi</groupId>
  169. <artifactId>ruoyi-framework</artifactId>
  170. <version>${ruoyi-vue-plus.version}</version>
  171. </dependency>
  172. <!-- 系统模块-->
  173. <dependency>
  174. <groupId>com.ruoyi</groupId>
  175. <artifactId>ruoyi-system</artifactId>
  176. <version>${ruoyi-vue-plus.version}</version>
  177. </dependency>
  178. <!-- 通用工具-->
  179. <dependency>
  180. <groupId>com.ruoyi</groupId>
  181. <artifactId>ruoyi-common</artifactId>
  182. <version>${ruoyi-vue-plus.version}</version>
  183. </dependency>
  184. <!-- demo模块 -->
  185. <dependency>
  186. <groupId>com.ruoyi</groupId>
  187. <artifactId>ruoyi-oss</artifactId>
  188. <version>${ruoyi-vue-plus.version}</version>
  189. </dependency>
  190. <!-- demo模块 -->
  191. <dependency>
  192. <groupId>com.ruoyi</groupId>
  193. <artifactId>ruoyi-demo</artifactId>
  194. <version>${ruoyi-vue-plus.version}</version>
  195. </dependency>
  196. </dependencies>
  197. </dependencyManagement>
  198. <modules>
  199. <module>ruoyi-admin</module>
  200. <module>ruoyi-framework</module>
  201. <module>ruoyi-system</module>
  202. <module>ruoyi-quartz</module>
  203. <module>ruoyi-generator</module>
  204. <module>ruoyi-common</module>
  205. <module>ruoyi-demo</module>
  206. <module>ruoyi-extend</module>
  207. <module>ruoyi-oss</module>
  208. </modules>
  209. <packaging>pom</packaging>
  210. <dependencies>
  211. </dependencies>
  212. <build>
  213. <plugins>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-compiler-plugin</artifactId>
  217. <version>3.1</version>
  218. <configuration>
  219. <source>${java.version}</source>
  220. <target>${java.version}</target>
  221. <encoding>${project.build.sourceEncoding}</encoding>
  222. </configuration>
  223. </plugin>
  224. </plugins>
  225. <resources>
  226. <resource>
  227. <!--打包该目录下的 application.yml -->
  228. <directory>src/main/resources</directory>
  229. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  230. <filtering>true</filtering>
  231. </resource>
  232. </resources>
  233. </build>
  234. <repositories>
  235. <repository>
  236. <id>public</id>
  237. <name>aliyun nexus</name>
  238. <url>https://maven.aliyun.com/repository/public/</url>
  239. <releases>
  240. <enabled>true</enabled>
  241. </releases>
  242. </repository>
  243. </repositories>
  244. <pluginRepositories>
  245. <pluginRepository>
  246. <id>public</id>
  247. <name>aliyun nexus</name>
  248. <url>https://maven.aliyun.com/repository/public/</url>
  249. <releases>
  250. <enabled>true</enabled>
  251. </releases>
  252. <snapshots>
  253. <enabled>false</enabled>
  254. </snapshots>
  255. </pluginRepository>
  256. </pluginRepositories>
  257. <profiles>
  258. <profile>
  259. <id>local</id>
  260. <properties>
  261. <!-- 环境标识,需要与配置文件的名称相对应 -->
  262. <profiles.active>local</profiles.active>
  263. <logging.level>debug</logging.level>
  264. <endpoints.include>'*'</endpoints.include>
  265. </properties>
  266. </profile>
  267. <profile>
  268. <id>dev</id>
  269. <properties>
  270. <!-- 环境标识,需要与配置文件的名称相对应 -->
  271. <profiles.active>dev</profiles.active>
  272. <logging.level>debug</logging.level>
  273. <endpoints.include>'*'</endpoints.include>
  274. </properties>
  275. <activation>
  276. <!-- 默认环境 -->
  277. <activeByDefault>true</activeByDefault>
  278. </activation>
  279. </profile>
  280. <profile>
  281. <id>prod</id>
  282. <properties>
  283. <profiles.active>prod</profiles.active>
  284. <logging.level>warn</logging.level>
  285. <endpoints.include>health,info</endpoints.include>
  286. </properties>
  287. </profile>
  288. <!-- jdk多版本配置 -->
  289. <profile>
  290. <id>jdk8</id>
  291. <activation>
  292. <activeByDefault>true</activeByDefault>
  293. <jdk>1.8</jdk>
  294. </activation>
  295. <properties>
  296. <java.version>1.8</java.version>
  297. </properties>
  298. </profile>
  299. <profile>
  300. <id>jdk11</id>
  301. <activation>
  302. <jdk>11</jdk>
  303. </activation>
  304. <properties>
  305. <java.version>11</java.version>
  306. <jaxb.version>3.0.1</jaxb.version>
  307. </properties>
  308. <dependencyManagement>
  309. <dependencies>
  310. <!-- jdk11 缺失依赖 jaxb-->
  311. <dependency>
  312. <groupId>com.sun.xml.bind</groupId>
  313. <artifactId>jaxb-impl</artifactId>
  314. <version>${jaxb.version}</version>
  315. </dependency>
  316. </dependencies>
  317. </dependencyManagement>
  318. <dependencies>
  319. <!--jaxb-->
  320. <dependency>
  321. <groupId>com.sun.xml.bind</groupId>
  322. <artifactId>jaxb-impl</artifactId>
  323. </dependency>
  324. </dependencies>
  325. </profile>
  326. </profiles>
  327. </project>