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.

435 lines
16 KiB

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