pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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</artifactId>
  8. <version>3.4.0</version>
  9. <name>ruoyi</name>
  10. <url>http://www.ruoyi.vip</url>
  11. <description>若依管理系统</description>
  12. <properties>
  13. <ruoyi.version>3.4.0</ruoyi.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <java.version>1.8</java.version>
  17. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  18. <druid.version>1.2.4</druid.version>
  19. <bitwalker.version>1.21</bitwalker.version>
  20. <swagger.version>2.9.2</swagger.version>
  21. <pagehelper.boot.version>1.3.0</pagehelper.boot.version>
  22. <fastjson.version>1.2.75</fastjson.version>
  23. <oshi.version>5.6.0</oshi.version>
  24. <jna.version>5.7.0</jna.version>
  25. <commons.io.version>2.5</commons.io.version>
  26. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  27. <poi.version>4.1.2</poi.version>
  28. <velocity.version>1.7</velocity.version>
  29. <jwt.version>0.9.1</jwt.version>
  30. <mybatis-plus.version>3.4.2</mybatis-plus.version>
  31. <hutool.version>5.5.8</hutool.version>
  32. <feign.version>2.2.6.RELEASE</feign.version>
  33. <feign-okhttp.version>11.0</feign-okhttp.version>
  34. </properties>
  35. <!-- 依赖声明 -->
  36. <dependencyManagement>
  37. <dependencies>
  38. <!-- SpringBoot的依赖配置-->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-dependencies</artifactId>
  42. <version>2.2.13.RELEASE</version>
  43. <type>pom</type>
  44. <scope>import</scope>
  45. </dependency>
  46. <!--阿里数据库连接池 -->
  47. <dependency>
  48. <groupId>com.alibaba</groupId>
  49. <artifactId>druid-spring-boot-starter</artifactId>
  50. <version>${druid.version}</version>
  51. </dependency>
  52. <!-- 解析客户端操作系统、浏览器等 -->
  53. <dependency>
  54. <groupId>eu.bitwalker</groupId>
  55. <artifactId>UserAgentUtils</artifactId>
  56. <version>${bitwalker.version}</version>
  57. </dependency>
  58. <!-- pagehelper 分页插件 -->
  59. <dependency>
  60. <groupId>com.github.pagehelper</groupId>
  61. <artifactId>pagehelper-spring-boot-starter</artifactId>
  62. <version>${pagehelper.boot.version}</version>
  63. <exclusions>
  64. <exclusion>
  65. <groupId>org.mybatis</groupId>
  66. <artifactId>mybatis</artifactId>
  67. </exclusion>
  68. </exclusions>
  69. </dependency>
  70. <!-- 获取系统信息 -->
  71. <dependency>
  72. <groupId>com.github.oshi</groupId>
  73. <artifactId>oshi-core</artifactId>
  74. <version>${oshi.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>net.java.dev.jna</groupId>
  78. <artifactId>jna</artifactId>
  79. <version>${jna.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>net.java.dev.jna</groupId>
  83. <artifactId>jna-platform</artifactId>
  84. <version>${jna.version}</version>
  85. </dependency>
  86. <!-- swagger2-->
  87. <dependency>
  88. <groupId>io.springfox</groupId>
  89. <artifactId>springfox-swagger2</artifactId>
  90. <version>${swagger.version}</version>
  91. <exclusions>
  92. <exclusion>
  93. <groupId>io.swagger</groupId>
  94. <artifactId>swagger-annotations</artifactId>
  95. </exclusion>
  96. <exclusion>
  97. <groupId>io.swagger</groupId>
  98. <artifactId>swagger-models</artifactId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. <!-- swagger2-UI-->
  103. <dependency>
  104. <groupId>io.springfox</groupId>
  105. <artifactId>springfox-swagger-ui</artifactId>
  106. <version>${swagger.version}</version>
  107. </dependency>
  108. <!--io常用工具类 -->
  109. <dependency>
  110. <groupId>commons-io</groupId>
  111. <artifactId>commons-io</artifactId>
  112. <version>${commons.io.version}</version>
  113. </dependency>
  114. <!--文件上传工具类 -->
  115. <dependency>
  116. <groupId>commons-fileupload</groupId>
  117. <artifactId>commons-fileupload</artifactId>
  118. <version>${commons.fileupload.version}</version>
  119. </dependency>
  120. <!-- excel工具 -->
  121. <dependency>
  122. <groupId>org.apache.poi</groupId>
  123. <artifactId>poi-ooxml</artifactId>
  124. <version>${poi.version}</version>
  125. </dependency>
  126. <!--velocity代码生成使用模板 -->
  127. <dependency>
  128. <groupId>org.apache.velocity</groupId>
  129. <artifactId>velocity</artifactId>
  130. <version>${velocity.version}</version>
  131. </dependency>
  132. <!-- 阿里JSON解析器 -->
  133. <dependency>
  134. <groupId>com.alibaba</groupId>
  135. <artifactId>fastjson</artifactId>
  136. <version>${fastjson.version}</version>
  137. </dependency>
  138. <!--Token生成与解析-->
  139. <dependency>
  140. <groupId>io.jsonwebtoken</groupId>
  141. <artifactId>jjwt</artifactId>
  142. <version>${jwt.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.baomidou</groupId>
  146. <artifactId>mybatis-plus-boot-starter</artifactId>
  147. <version>${mybatis-plus.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.baomidou</groupId>
  151. <artifactId>mybatis-plus-extension</artifactId>
  152. <version>${mybatis-plus.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>cn.hutool</groupId>
  156. <artifactId>hutool-all</artifactId>
  157. <version>${hutool.version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.springframework.cloud</groupId>
  161. <artifactId>spring-cloud-starter-openfeign</artifactId>
  162. <version>${feign.version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>io.github.openfeign</groupId>
  166. <artifactId>feign-okhttp</artifactId>
  167. <version>${feign-okhttp.version}</version>
  168. </dependency>
  169. <!-- 定时任务-->
  170. <dependency>
  171. <groupId>com.ruoyi</groupId>
  172. <artifactId>ruoyi-quartz</artifactId>
  173. <version>${ruoyi.version}</version>
  174. </dependency>
  175. <!-- 代码生成-->
  176. <dependency>
  177. <groupId>com.ruoyi</groupId>
  178. <artifactId>ruoyi-generator</artifactId>
  179. <version>${ruoyi.version}</version>
  180. </dependency>
  181. <!-- 核心模块-->
  182. <dependency>
  183. <groupId>com.ruoyi</groupId>
  184. <artifactId>ruoyi-framework</artifactId>
  185. <version>${ruoyi.version}</version>
  186. </dependency>
  187. <!-- 系统模块-->
  188. <dependency>
  189. <groupId>com.ruoyi</groupId>
  190. <artifactId>ruoyi-system</artifactId>
  191. <version>${ruoyi.version}</version>
  192. </dependency>
  193. <!-- 通用工具-->
  194. <dependency>
  195. <groupId>com.ruoyi</groupId>
  196. <artifactId>ruoyi-common</artifactId>
  197. <version>${ruoyi.version}</version>
  198. </dependency>
  199. <!-- demo模块 -->
  200. <dependency>
  201. <groupId>com.ruoyi</groupId>
  202. <artifactId>ruoyi-demo</artifactId>
  203. <version>${ruoyi.version}</version>
  204. </dependency>
  205. </dependencies>
  206. </dependencyManagement>
  207. <modules>
  208. <module>ruoyi-admin</module>
  209. <module>ruoyi-framework</module>
  210. <module>ruoyi-system</module>
  211. <module>ruoyi-quartz</module>
  212. <module>ruoyi-generator</module>
  213. <module>ruoyi-common</module>
  214. <module>ruoyi-demo</module>
  215. </modules>
  216. <packaging>pom</packaging>
  217. <dependencies>
  218. </dependencies>
  219. <build>
  220. <plugins>
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-compiler-plugin</artifactId>
  224. <version>3.1</version>
  225. <configuration>
  226. <source>${java.version}</source>
  227. <target>${java.version}</target>
  228. <encoding>${project.build.sourceEncoding}</encoding>
  229. </configuration>
  230. </plugin>
  231. </plugins>
  232. <resources>
  233. <resource>
  234. <!--打包该目录下的 application.yml -->
  235. <directory>src/main/resources</directory>
  236. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  237. <filtering>true</filtering>
  238. </resource>
  239. </resources>
  240. </build>
  241. <repositories>
  242. <repository>
  243. <id>public</id>
  244. <name>aliyun nexus</name>
  245. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  246. <releases>
  247. <enabled>true</enabled>
  248. </releases>
  249. </repository>
  250. </repositories>
  251. <pluginRepositories>
  252. <pluginRepository>
  253. <id>public</id>
  254. <name>aliyun nexus</name>
  255. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  256. <releases>
  257. <enabled>true</enabled>
  258. </releases>
  259. <snapshots>
  260. <enabled>false</enabled>
  261. </snapshots>
  262. </pluginRepository>
  263. </pluginRepositories>
  264. <profiles>
  265. <profile>
  266. <id>dev</id>
  267. <properties>
  268. <!-- 环境标识,需要与配置文件的名称相对应 -->
  269. <profiles.active>dev</profiles.active>
  270. <logging.level>debug</logging.level>
  271. </properties>
  272. <activation>
  273. <!-- 默认环境 -->
  274. <activeByDefault>true</activeByDefault>
  275. </activation>
  276. </profile>
  277. <profile>
  278. <id>prod</id>
  279. <properties>
  280. <profiles.active>prod</profiles.active>
  281. <logging.level>warn</logging.level>
  282. </properties>
  283. </profile>
  284. </profiles>
  285. </project>