pom.xml 12 KB

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