pom.xml 11 KB

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