You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

418 lines
16 KiB

1 year ago
1 year ago
  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.inscloudtech</groupId>
  7. <artifactId>cas-server</artifactId>
  8. <version>4.7.0</version>
  9. <properties>
  10. <cas-server.version>4.7.0</cas-server.version>
  11. <spring-boot.version>2.7.11</spring-boot.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <java.version>1.8</java.version>
  15. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  16. <spring-boot.mybatis>2.2.2</spring-boot.mybatis>
  17. <springdoc.version>1.6.15</springdoc.version>
  18. <poi.version>4.1.2</poi.version>
  19. <easyexcel.version>3.2.1</easyexcel.version>
  20. <velocity.version>2.3</velocity.version>
  21. <satoken.version>1.34.0</satoken.version>
  22. <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
  23. <p6spy.version>3.9.1</p6spy.version>
  24. <hutool.version>5.8.18</hutool.version>
  25. <okhttp.version>4.10.0</okhttp.version>
  26. <spring-boot-admin.version>2.7.10</spring-boot-admin.version>
  27. <redisson.version>3.20.1</redisson.version>
  28. <lock4j.version>2.2.3</lock4j.version>
  29. <dynamic-ds.version>3.5.2</dynamic-ds.version>
  30. <alibaba-ttl.version>2.14.2</alibaba-ttl.version>
  31. <lombok.version>1.18.26</lombok.version>
  32. <bouncycastle.version>1.72</bouncycastle.version>
  33. <!-- 离线IP地址定位库 -->
  34. <ip2region.version>2.7.0</ip2region.version>
  35. <commons.io.version>2.13.0</commons.io.version>
  36. <!-- 临时修复 snakeyaml 漏洞 -->
  37. <snakeyaml.version>1.33</snakeyaml.version>
  38. </properties>
  39. <profiles>
  40. <profile>
  41. <id>dev</id>
  42. <properties>
  43. <!-- 环境标识,需要与配置文件的名称相对应 -->
  44. <profiles.active>dev</profiles.active>
  45. <logging.level>debug</logging.level>
  46. </properties>
  47. <activation>
  48. <!-- 默认环境 -->
  49. <activeByDefault>true</activeByDefault>
  50. </activation>
  51. </profile>
  52. <profile>
  53. <id>prod</id>
  54. <properties>
  55. <profiles.active>prod</profiles.active>
  56. <logging.level>error</logging.level>
  57. </properties>
  58. </profile>
  59. </profiles>
  60. <!-- 依赖声明 -->
  61. <dependencyManagement>
  62. <dependencies>
  63. <!-- SpringBoot的依赖配置-->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-dependencies</artifactId>
  67. <version>${spring-boot.version}</version>
  68. <type>pom</type>
  69. <scope>import</scope>
  70. </dependency>
  71. <!-- hutool 的依赖配置-->
  72. <dependency>
  73. <groupId>cn.hutool</groupId>
  74. <artifactId>hutool-bom</artifactId>
  75. <version>${hutool.version}</version>
  76. <type>pom</type>
  77. <scope>import</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springdoc</groupId>
  81. <artifactId>springdoc-openapi-webmvc-core</artifactId>
  82. <version>${springdoc.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springdoc</groupId>
  86. <artifactId>springdoc-openapi-javadoc</artifactId>
  87. <version>${springdoc.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.projectlombok</groupId>
  91. <artifactId>lombok</artifactId>
  92. <version>${lombok.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.poi</groupId>
  96. <artifactId>poi</artifactId>
  97. <version>${poi.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.poi</groupId>
  101. <artifactId>poi-ooxml</artifactId>
  102. <version>${poi.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.alibaba</groupId>
  106. <artifactId>easyexcel</artifactId>
  107. <version>${easyexcel.version}</version>
  108. <exclusions>
  109. <exclusion>
  110. <groupId>org.apache.poi</groupId>
  111. <artifactId>poi-ooxml-schemas</artifactId>
  112. </exclusion>
  113. </exclusions>
  114. </dependency>
  115. <!-- velocity代码生成使用模板 -->
  116. <dependency>
  117. <groupId>org.apache.velocity</groupId>
  118. <artifactId>velocity-engine-core</artifactId>
  119. <version>${velocity.version}</version>
  120. </dependency>
  121. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  122. <dependency>
  123. <groupId>cn.dev33</groupId>
  124. <artifactId>sa-token-spring-boot-starter</artifactId>
  125. <version>${satoken.version}</version>
  126. </dependency>
  127. <!-- Sa-Token 整合 jwt -->
  128. <dependency>
  129. <groupId>cn.dev33</groupId>
  130. <artifactId>sa-token-jwt</artifactId>
  131. <version>${satoken.version}</version>
  132. <exclusions>
  133. <exclusion>
  134. <groupId>cn.hutool</groupId>
  135. <artifactId>hutool-all</artifactId>
  136. </exclusion>
  137. </exclusions>
  138. </dependency>
  139. <!-- dynamic-datasource 多数据源-->
  140. <dependency>
  141. <groupId>com.baomidou</groupId>
  142. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  143. <version>${dynamic-ds.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.baomidou</groupId>
  147. <artifactId>mybatis-plus-boot-starter</artifactId>
  148. <version>${mybatis-plus.version}</version>
  149. </dependency>
  150. <!-- sql性能分析插件 -->
  151. <dependency>
  152. <groupId>p6spy</groupId>
  153. <artifactId>p6spy</artifactId>
  154. <version>${p6spy.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>com.squareup.okhttp3</groupId>
  158. <artifactId>okhttp</artifactId>
  159. <version>${okhttp.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>de.codecentric</groupId>
  163. <artifactId>spring-boot-admin-starter-server</artifactId>
  164. <version>${spring-boot-admin.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>de.codecentric</groupId>
  168. <artifactId>spring-boot-admin-starter-client</artifactId>
  169. <version>${spring-boot-admin.version}</version>
  170. </dependency>
  171. <!--redisson-->
  172. <dependency>
  173. <groupId>org.redisson</groupId>
  174. <artifactId>redisson-spring-boot-starter</artifactId>
  175. <version>${redisson.version}</version>
  176. <exclusions>
  177. <exclusion>
  178. <groupId>org.redisson</groupId>
  179. <artifactId>redisson-spring-data-30</artifactId>
  180. </exclusion>
  181. </exclusions>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.redisson</groupId>
  185. <artifactId>redisson-spring-data-27</artifactId>
  186. <version>${redisson.version}</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.baomidou</groupId>
  190. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  191. <version>${lock4j.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.alibaba</groupId>
  195. <artifactId>transmittable-thread-local</artifactId>
  196. <version>${alibaba-ttl.version}</version>
  197. </dependency>
  198. <!-- 离线IP地址定位库 ip2region -->
  199. <dependency>
  200. <groupId>org.lionsoul</groupId>
  201. <artifactId>ip2region</artifactId>
  202. <version>${ip2region.version}</version>
  203. </dependency>
  204. <!-- 临时修复 snakeyaml 漏洞 -->
  205. <dependency>
  206. <groupId>org.yaml</groupId>
  207. <artifactId>snakeyaml</artifactId>
  208. <version>${snakeyaml.version}</version>
  209. </dependency>
  210. <!-- 加密包引入 -->
  211. <dependency>
  212. <groupId>org.bouncycastle</groupId>
  213. <artifactId>bcprov-jdk15to18</artifactId>
  214. <version>${bouncycastle.version}</version>
  215. </dependency>
  216. <!-- 代码生成-->
  217. <dependency>
  218. <groupId>com.inscloudtech</groupId>
  219. <artifactId>cas-generator</artifactId>
  220. <version>${cas-server.version}</version>
  221. </dependency>
  222. <!-- 核心模块-->
  223. <dependency>
  224. <groupId>com.inscloudtech</groupId>
  225. <artifactId>cas-framework</artifactId>
  226. <version>${cas-server.version}</version>
  227. </dependency>
  228. <!-- 系统模块-->
  229. <dependency>
  230. <groupId>com.inscloudtech</groupId>
  231. <artifactId>cas-system</artifactId>
  232. <version>${cas-server.version}</version>
  233. </dependency>
  234. <!-- 通用工具-->
  235. <dependency>
  236. <groupId>com.inscloudtech</groupId>
  237. <artifactId>cas-common</artifactId>
  238. <version>${cas-server.version}</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>com.belerweb</groupId>
  242. <artifactId>pinyin4j</artifactId>
  243. <version>2.5.0</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>commons-httpclient</groupId>
  247. <artifactId>commons-httpclient</artifactId>
  248. <version>3.1</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>com.belerweb</groupId>
  252. <artifactId>pinyin4j</artifactId>
  253. <version>2.5.0</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>org.elasticsearch.client</groupId>
  257. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  258. <version>7.14.0</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.elasticsearch.client</groupId>
  262. <artifactId>elasticsearch-rest-client</artifactId>
  263. <version>7.14.0</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.elasticsearch</groupId>
  267. <artifactId>elasticsearch</artifactId>
  268. <version>7.14.0</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.dromara.easy-es</groupId>
  272. <artifactId>easy-es-boot-starter</artifactId>
  273. <version>2.0.0-beta4</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.dromara.easy-es</groupId>
  277. <artifactId>easy-es-annotation</artifactId>
  278. <version>2.0.0-beta4</version>
  279. </dependency>
  280. </dependencies>
  281. </dependencyManagement>
  282. <modules>
  283. <module>cas-admin</module>
  284. <module>cas-framework</module>
  285. <module>cas-system</module>
  286. <module>cas-generator</module>
  287. <module>cas-common</module>
  288. </modules>
  289. <packaging>pom</packaging>
  290. <build>
  291. <plugins>
  292. <plugin>
  293. <groupId>org.apache.maven.plugins</groupId>
  294. <artifactId>maven-compiler-plugin</artifactId>
  295. <version>3.9.0</version>
  296. <configuration>
  297. <source>${java.version}</source>
  298. <target>${java.version}</target>
  299. <encoding>${project.build.sourceEncoding}</encoding>
  300. <annotationProcessorPaths>
  301. <path>
  302. <groupId>com.github.therapi</groupId>
  303. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  304. <version>0.15.0</version>
  305. </path>
  306. <path>
  307. <groupId>org.projectlombok</groupId>
  308. <artifactId>lombok</artifactId>
  309. <version>${lombok.version}</version>
  310. </path>
  311. <path>
  312. <groupId>org.springframework.boot</groupId>
  313. <artifactId>spring-boot-configuration-processor</artifactId>
  314. <version>${spring-boot.version}</version>
  315. </path>
  316. </annotationProcessorPaths>
  317. </configuration>
  318. </plugin>
  319. <!-- 单元测试使用 -->
  320. <plugin>
  321. <groupId>org.apache.maven.plugins</groupId>
  322. <artifactId>maven-surefire-plugin</artifactId>
  323. <version>2.22.2</version>
  324. <configuration>
  325. <argLine>-Dfile.encoding=UTF-8</argLine>
  326. <!-- 根据打包环境执行对应的@Tag测试方法 -->
  327. <groups>${profiles.active}</groups>
  328. <!-- 排除标签 -->
  329. <excludedGroups>exclude</excludedGroups>
  330. </configuration>
  331. </plugin>
  332. </plugins>
  333. <resources>
  334. <resource>
  335. <directory>src/main/resources</directory>
  336. <!-- 关闭过滤 -->
  337. <filtering>false</filtering>
  338. </resource>
  339. <resource>
  340. <directory>src/main/resources</directory>
  341. <!-- 引入所有 匹配文件进行过滤 -->
  342. <includes>
  343. <include>application*</include>
  344. <include>bootstrap*</include>
  345. <include>banner*</include>
  346. </includes>
  347. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  348. <filtering>true</filtering>
  349. </resource>
  350. </resources>
  351. </build>
  352. <repositories>
  353. <repository>
  354. <id>public</id>
  355. <name>aliyun nexus</name>
  356. <url>https://maven.aliyun.com/repository/public/</url>
  357. <releases>
  358. <enabled>true</enabled>
  359. </releases>
  360. </repository>
  361. </repositories>
  362. <pluginRepositories>
  363. <pluginRepository>
  364. <id>public</id>
  365. <name>aliyun nexus</name>
  366. <url>https://maven.aliyun.com/repository/public/</url>
  367. <releases>
  368. <enabled>true</enabled>
  369. </releases>
  370. <snapshots>
  371. <enabled>false</enabled>
  372. </snapshots>
  373. </pluginRepository>
  374. </pluginRepositories>
  375. </project>