测试平台
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.

426 lines
16 KiB

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