pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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.eitc</groupId>
  7. <artifactId>eitc</artifactId>
  8. <version>3.8.7</version>
  9. <name>eitc</name>
  10. <description>牙科管理系统</description>
  11. <properties>
  12. <eitc.version>3.8.7</eitc.version>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <java.version>1.8</java.version>
  16. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  17. <spring-framework.version>5.3.33</spring-framework.version>
  18. <druid.version>1.2.20</druid.version>
  19. <bitwalker.version>1.21</bitwalker.version>
  20. <swagger.version>3.0.0</swagger.version>
  21. <kaptcha.version>2.3.3</kaptcha.version>
  22. <pagehelper.boot.version>1.4.7</pagehelper.boot.version>
  23. <fastjson.version>2.0.43</fastjson.version>
  24. <oshi.version>6.5.0</oshi.version>
  25. <commons.io.version>2.13.0</commons.io.version>
  26. <poi.version>4.1.2</poi.version>
  27. <velocity.version>2.3</velocity.version>
  28. <jwt.version>0.9.1</jwt.version>
  29. </properties>
  30. <!-- 依赖声明 -->
  31. <dependencyManagement>
  32. <dependencies>
  33. <!-- SpringFramework的依赖配置-->
  34. <dependency>
  35. <groupId>org.springframework</groupId>
  36. <artifactId>spring-framework-bom</artifactId>
  37. <version>${spring-framework.version}</version>
  38. <type>pom</type>
  39. <scope>import</scope>
  40. </dependency>
  41. <!-- SpringBoot的依赖配置-->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-dependencies</artifactId>
  45. <version>2.5.15</version>
  46. <type>pom</type>
  47. <scope>import</scope>
  48. </dependency>
  49. <!--
  50. Spring Boot 2.5.15的内置版本
  51. <spring-security.version>5.5.8</spring-security.version>
  52. 强制修改依赖版本为:5.7.12
  53. 存在漏洞的JAR包:spring-security-core-5.5.8.jar
  54. 漏洞说明:Spring Security存在安全漏洞,在处理Authentication参数时没有对null值进行检查。当应用程序直接使用AuthenticatedVoter#vote方法,传入null作为认证参数时会错误地返回true值。攻击者可利用该漏洞绕过身份验证,进行提权或窃取系统敏感信息。
  55. 安全版本: Spring Security 5.7.12、5.8.11、6.0.10、6.1.8、6.2.3 及以上版本,下载地址:https://github.com/spring-projects/spring-security/releases
  56. <spring-security.version>5.7.12</spring-security.version>
  57. 注意:因为使用Maven管理依赖,MAVEN具有依赖传递的特性,实质上只需要引入spring-security-config依赖包含了spring-security-core依赖和spring-security-web依赖
  58. -->
  59. <!-- spring-security 漏洞升级 -->
  60. <dependency>
  61. <groupId>org.springframework.security</groupId>
  62. <artifactId>spring-security-config</artifactId>
  63. <version>5.7.12</version>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.security</groupId>
  68. <artifactId>spring-security-core</artifactId>
  69. <version>5.7.12</version>
  70. <scope>compile</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.security</groupId>
  74. <artifactId>spring-security-crypto</artifactId>
  75. <version>5.7.12</version>
  76. <scope>compile</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.security</groupId>
  80. <artifactId>spring-security-web</artifactId>
  81. <version>5.7.12</version>
  82. <scope>compile</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.quartz-scheduler</groupId>
  86. <artifactId>quartz</artifactId>
  87. <version>2.4.0-rc2</version>
  88. <exclusions>
  89. <exclusion>
  90. <groupId>com.mchange</groupId>
  91. <artifactId>c3p0</artifactId>
  92. </exclusion>
  93. </exclusions>
  94. </dependency>
  95. <!-- 阿里数据库连接池 -->
  96. <dependency>
  97. <groupId>com.alibaba</groupId>
  98. <artifactId>druid-spring-boot-starter</artifactId>
  99. <version>${druid.version}</version>
  100. <exclusions>
  101. <exclusion>
  102. <groupId>org.yaml</groupId>
  103. <artifactId>snakeyaml</artifactId>
  104. </exclusion>
  105. </exclusions>
  106. </dependency>
  107. <!-- yml解析器 漏洞修复,安全版本2.0及以上:https://mvnrepository.com/artifact/org.yaml/snakeyaml-->
  108. <!-- 漏洞升级 -->
  109. <dependency>
  110. <groupId>org.yaml</groupId>
  111. <artifactId>snakeyaml</artifactId>
  112. <version>2.0</version>
  113. </dependency>
  114. <!-- 解析客户端操作系统、浏览器等 -->
  115. <dependency>
  116. <groupId>eu.bitwalker</groupId>
  117. <artifactId>UserAgentUtils</artifactId>
  118. <version>${bitwalker.version}</version>
  119. </dependency>
  120. <!-- pagehelper 分页插件 -->
  121. <dependency>
  122. <groupId>com.github.pagehelper</groupId>
  123. <artifactId>pagehelper-spring-boot-starter</artifactId>
  124. <version>${pagehelper.boot.version}</version>
  125. </dependency>
  126. <!-- 获取系统信息 -->
  127. <dependency>
  128. <groupId>com.github.oshi</groupId>
  129. <artifactId>oshi-core</artifactId>
  130. <version>${oshi.version}</version>
  131. </dependency>
  132. <!-- Swagger3依赖 -->
  133. <dependency>
  134. <groupId>io.springfox</groupId>
  135. <artifactId>springfox-boot-starter</artifactId>
  136. <version>${swagger.version}</version>
  137. <exclusions>
  138. <exclusion>
  139. <groupId>io.swagger</groupId>
  140. <artifactId>swagger-models</artifactId>
  141. </exclusion>
  142. </exclusions>
  143. </dependency>
  144. <!-- io常用工具类 -->
  145. <dependency>
  146. <groupId>commons-io</groupId>
  147. <artifactId>commons-io</artifactId>
  148. <version>${commons.io.version}</version>
  149. </dependency>
  150. <!-- excel工具 -->
  151. <dependency>
  152. <groupId>org.apache.poi</groupId>
  153. <artifactId>poi-ooxml</artifactId>
  154. <version>${poi.version}</version>
  155. </dependency>
  156. <!-- velocity代码生成使用模板 -->
  157. <dependency>
  158. <groupId>org.apache.velocity</groupId>
  159. <artifactId>velocity-engine-core</artifactId>
  160. <version>${velocity.version}</version>
  161. </dependency>
  162. <!-- 阿里JSON解析器 -->
  163. <dependency>
  164. <groupId>com.alibaba.fastjson2</groupId>
  165. <artifactId>fastjson2</artifactId>
  166. <version>${fastjson.version}</version>
  167. </dependency>
  168. <!-- Token生成与解析-->
  169. <dependency>
  170. <groupId>io.jsonwebtoken</groupId>
  171. <artifactId>jjwt</artifactId>
  172. <version>${jwt.version}</version>
  173. </dependency>
  174. <!-- 验证码 -->
  175. <dependency>
  176. <groupId>pro.fessional</groupId>
  177. <artifactId>kaptcha</artifactId>
  178. <version>${kaptcha.version}</version>
  179. </dependency>
  180. <!-- mybatis-plus 增强CRUD -->
  181. <dependency>
  182. <groupId>com.baomidou</groupId>
  183. <artifactId>mybatis-plus-boot-starter</artifactId>
  184. <version>3.5.1</version>
  185. </dependency>
  186. <!-- 定时任务-->
  187. <dependency>
  188. <groupId>com.eitc</groupId>
  189. <artifactId>eitc-quartz</artifactId>
  190. <version>${eitc.version}</version>
  191. </dependency>
  192. <!-- 代码生成-->
  193. <dependency>
  194. <groupId>com.eitc</groupId>
  195. <artifactId>eitc-generator</artifactId>
  196. <version>${eitc.version}</version>
  197. </dependency>
  198. <!-- 核心模块-->
  199. <dependency>
  200. <groupId>com.eitc</groupId>
  201. <artifactId>eitc-framework</artifactId>
  202. <version>${eitc.version}</version>
  203. </dependency>
  204. <!-- 系统模块-->
  205. <dependency>
  206. <groupId>com.eitc</groupId>
  207. <artifactId>eitc-system</artifactId>
  208. <version>${eitc.version}</version>
  209. </dependency>
  210. <!-- 通用工具-->
  211. <dependency>
  212. <groupId>com.eitc</groupId>
  213. <artifactId>eitc-common</artifactId>
  214. <version>${eitc.version}</version>
  215. </dependency>
  216. </dependencies>
  217. </dependencyManagement>
  218. <modules>
  219. <module>eitc-admin</module>
  220. <module>eitc-framework</module>
  221. <module>eitc-system</module>
  222. <module>eitc-quartz</module>
  223. <module>eitc-generator</module>
  224. <module>eitc-common</module>
  225. </modules>
  226. <packaging>pom</packaging>
  227. <build>
  228. <plugins>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-compiler-plugin</artifactId>
  232. <version>3.1</version>
  233. <configuration>
  234. <source>${java.version}</source>
  235. <target>${java.version}</target>
  236. <encoding>${project.build.sourceEncoding}</encoding>
  237. </configuration>
  238. </plugin>
  239. </plugins>
  240. </build>
  241. <repositories>
  242. <repository>
  243. <id>public</id>
  244. <name>aliyun nexus</name>
  245. <url>https://maven.aliyun.com/repository/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>https://maven.aliyun.com/repository/public</url>
  256. <releases>
  257. <enabled>true</enabled>
  258. </releases>
  259. <snapshots>
  260. <enabled>false</enabled>
  261. </snapshots>
  262. </pluginRepository>
  263. </pluginRepositories>
  264. </project>