pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  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.sckw</groupId>
  7. <artifactId>slope-manage-service</artifactId>
  8. <version>1.0.0</version>
  9. <name>slope-manage-service</name>
  10. <url>http://git.sckaiwu.cn/17358629955/sckw-service-platform.git</url>
  11. <description>slope-manage-service微服务系统</description>
  12. <modules>
  13. <module>slope-common</module>
  14. <module>slope-modules</module>
  15. <module>slope-modules-api</module>
  16. </modules>
  17. <packaging>pom</packaging>
  18. <properties>
  19. <maven.compiler.source>17</maven.compiler.source>
  20. <maven.compiler.target>17</maven.compiler.target>
  21. <maven.compiler.compilerVersion>17</maven.compiler.compilerVersion>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <spring-version>6.0.7</spring-version>
  24. <spring-boot.version>3.0.5</spring-boot.version>
  25. <spring-cloud.version>2022.0.0</spring-cloud.version>
  26. <spring-cloud-alibaba.version>2022.0.0.0-RC1</spring-cloud-alibaba.version>
  27. <!--不能使用3.2.0版本,会导致redisson里面的kryo版本降低值4.2.0-->
  28. <dubbo.version>3.2.2</dubbo.version>
  29. <snakeyaml.version>2.0</snakeyaml.version>
  30. <springdoc.version>2.1.0</springdoc.version>
  31. <redisson.version>3.21.3</redisson.version>
  32. <fastjson.version>2.0.38</fastjson.version>
  33. <easyexcel.version>3.3.2</easyexcel.version>
  34. <cglib.version>3.3.0</cglib.version>
  35. <commons-io.version>2.11.0</commons-io.version>
  36. <alicloud-sms.version>2.2.0.RELEASE</alicloud-sms.version>
  37. <oss.version>2.2.0.RELEASE</oss.version>
  38. <sentinel-csp.version>1.8.6</sentinel-csp.version>
  39. <nacos-client.version>2.2.1</nacos-client.version>
  40. <hutool.version>5.8.18</hutool.version>
  41. <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
  42. <dynamic-datasource.version>3.6.1</dynamic-datasource.version>
  43. <latest.release.version>5.2.0</latest.release.version>
  44. <pagehelper.version>5.3.2</pagehelper.version>
  45. <pagehelper-spring-boot-starter.version>1.4.7</pagehelper-spring-boot-starter.version>
  46. <junit.version>4.13.2</junit.version>
  47. <xxljob.version>2.4.0</xxljob.version>
  48. <project.version>1.0.0</project.version>
  49. <!--maven插件版本声明-->
  50. <maven-clean-plugin.version>3.2.0</maven-clean-plugin.version>
  51. <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
  52. <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
  53. <maven-resources-plugin.version>3.3.0</maven-resources-plugin.version>
  54. <maven-install-plugin.version>3.0.1</maven-install-plugin.version>
  55. <maven-deploy-plugin.version>3.0.0</maven-deploy-plugin.version>
  56. </properties>
  57. <dependencyManagement>
  58. <dependencies>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-dependencies</artifactId>
  62. <version>${spring-boot.version}</version>
  63. <type>pom</type>
  64. <scope>import</scope>
  65. </dependency>
  66. <!-- spring-cloud -->
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-dependencies</artifactId>
  70. <version>${spring-cloud.version}</version>
  71. <type>pom</type>
  72. <scope>import</scope>
  73. </dependency>
  74. <!-- spring-cloud-alibaba -->
  75. <dependency>
  76. <groupId>com.alibaba.cloud</groupId>
  77. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  78. <version>${spring-cloud-alibaba.version}</version>
  79. <type>pom</type>
  80. <scope>import</scope>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>com.alibaba.nacos</groupId>
  84. <artifactId>nacos-client</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <!-- common 的依赖配置-->
  89. <dependency>
  90. <groupId>com.sckw</groupId>
  91. <artifactId>sckw-common-bom</artifactId>
  92. <version>${project.version}</version>
  93. <type>pom</type>
  94. <scope>import</scope>
  95. </dependency>
  96. <!-- modules 的依赖配置-->
  97. <dependency>
  98. <groupId>com.sckw</groupId>
  99. <artifactId>sckw-modules-bom</artifactId>
  100. <version>${project.version}</version>
  101. <type>pom</type>
  102. <scope>import</scope>
  103. </dependency>
  104. <!-- apache dubbo -->
  105. <dependency>
  106. <groupId>org.apache.dubbo</groupId>
  107. <artifactId>dubbo-bom</artifactId>
  108. <version>${dubbo.version}</version>
  109. <type>pom</type>
  110. <scope>import</scope>
  111. <exclusions>
  112. <exclusion>
  113. <groupId>com.alibaba</groupId>
  114. <artifactId>hessian-lite</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. <!-- yaml/yml配置文件 -->
  119. <dependency>
  120. <groupId>org.yaml</groupId>
  121. <artifactId>snakeyaml</artifactId>
  122. <version>${snakeyaml.version}</version>
  123. <!--<scope>compile</scope>-->
  124. </dependency>
  125. <!--处理序列化问题-->
  126. <dependency>
  127. <groupId>com.caucho</groupId>
  128. <artifactId>hessian</artifactId>
  129. </dependency>
  130. <!--reids操作-->
  131. <dependency>
  132. <groupId>org.redisson</groupId>
  133. <artifactId>redisson-spring-boot-starter</artifactId>
  134. <version>${redisson.version}</version>
  135. </dependency>
  136. <!--alibaba fastjson-->
  137. <dependency>
  138. <groupId>com.alibaba</groupId>
  139. <artifactId>fastjson</artifactId>
  140. <version>${fastjson.version}</version>
  141. </dependency>
  142. <!--alibaba EasyExcel导入导出-->
  143. <dependency>
  144. <groupId>com.alibaba</groupId>
  145. <artifactId>easyexcel</artifactId>
  146. <version>${easyexcel.version}</version>
  147. </dependency>
  148. <!--cglib-->
  149. <dependency>
  150. <groupId>cglib</groupId>
  151. <artifactId>cglib</artifactId>
  152. <exclusions>
  153. <exclusion>
  154. <groupId>org.ow2.asm</groupId>
  155. <artifactId>asm</artifactId>
  156. </exclusion>
  157. </exclusions>
  158. <version>${cglib.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>commons-io</groupId>
  162. <artifactId>commons-io</artifactId>
  163. <version>${commons-io.version}</version>
  164. </dependency>
  165. <!--alibaba 短信-->
  166. <dependency>
  167. <groupId>com.alibaba.cloud</groupId>
  168. <artifactId>spring-cloud-alicloud-sms</artifactId>
  169. <version>${alicloud-sms.version}</version>
  170. </dependency>
  171. <!--alibaba oss-->
  172. <dependency>
  173. <groupId>com.alibaba.cloud</groupId>
  174. <artifactId>spring-cloud-starter-alicloud-oss</artifactId>
  175. <version>${oss.version}</version>
  176. </dependency>
  177. <!-- Sentinel Datasource Nacos 持久化存储-->
  178. <dependency>
  179. <groupId>com.alibaba.csp</groupId>
  180. <artifactId>sentinel-datasource-nacos</artifactId>
  181. <version>${sentinel-csp.version}</version>
  182. </dependency>
  183. <!--nacos-->
  184. <dependency>
  185. <groupId>com.alibaba.nacos</groupId>
  186. <artifactId>nacos-client</artifactId>
  187. <version>${nacos-client.version}</version>
  188. </dependency>
  189. <!-- 上面排除掉了springcloud默认seata版本,此处引入和seata-server版本对应的seata包-->
  190. <dependency>
  191. <groupId>io.seata</groupId>
  192. <artifactId>seata-spring-boot-starter</artifactId>
  193. <version>1.6.1</version>
  194. </dependency>
  195. <!--jdk9+ 以上需要手动添加 JAXB能够使用Jackson对JAXB注解-->
  196. <dependency>
  197. <groupId>javax.xml.bind</groupId>
  198. <artifactId>jaxb-api</artifactId>
  199. <version>2.3.1</version>
  200. </dependency>
  201. <!--hutool-->
  202. <dependency>
  203. <groupId>cn.hutool</groupId>
  204. <artifactId>hutool-http</artifactId>
  205. <version>${hutool.version}</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>cn.hutool</groupId>
  209. <artifactId>hutool-extra</artifactId>
  210. <version>${hutool.version}</version>
  211. </dependency>
  212. <!--mybatis-plus 依赖-->
  213. <dependency>
  214. <groupId>com.baomidou</groupId>
  215. <artifactId>mybatis-plus-boot-starter</artifactId>
  216. <version>${mybatis-plus.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>com.baomidou</groupId>
  220. <artifactId>mybatis-plus-annotation</artifactId>
  221. <version>${mybatis-plus.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.baomidou</groupId>
  225. <artifactId>mybatis-plus-extension</artifactId>
  226. <version>${mybatis-plus.version}</version>
  227. </dependency>
  228. <!--多数据源-->
  229. <dependency>
  230. <groupId>com.baomidou</groupId>
  231. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  232. <version>${dynamic-datasource.version}</version>
  233. </dependency>
  234. <!--ShardingSphere-JDBC-->
  235. <dependency>
  236. <groupId>org.apache.shardingsphere</groupId>
  237. <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
  238. <version>${latest.release.version}</version>
  239. </dependency>
  240. <!--分页-->
  241. <dependency>
  242. <groupId>com.github.pagehelper</groupId>
  243. <artifactId>pagehelper</artifactId>
  244. <version>${pagehelper.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.github.pagehelper</groupId>
  248. <artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
  249. <version>${pagehelper-spring-boot-starter.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>com.github.pagehelper</groupId>
  253. <artifactId>pagehelper-spring-boot-starter</artifactId>
  254. <version>${pagehelper-spring-boot-starter.version}</version>
  255. </dependency>
  256. <!--junit-->
  257. <dependency>
  258. <groupId>junit</groupId>
  259. <artifactId>junit</artifactId>
  260. <version>${junit.version}</version>
  261. <scope>test</scope>
  262. </dependency>
  263. <!--Lombok-->
  264. <dependency>
  265. <groupId>org.projectlombok</groupId>
  266. <artifactId>lombok</artifactId>
  267. <version>1.18.26</version>
  268. <!--<scope>provided</scope>-->
  269. </dependency>
  270. <dependency>
  271. <groupId>org.apache.tomcat.embed</groupId>
  272. <artifactId>tomcat-embed-core</artifactId>
  273. <version>10.1.7</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.springframework</groupId>
  277. <artifactId>spring-webmvc</artifactId>
  278. <version>${spring-version}</version>
  279. </dependency>
  280. <!--xxx-job-->
  281. <dependency>
  282. <groupId>com.xuxueli</groupId>
  283. <artifactId>xxl-job-core</artifactId>
  284. <version>${xxljob.version}</version>
  285. </dependency>
  286. <!--<dependency>
  287. <groupId>org.aspectj</groupId>
  288. <artifactId>aspectjweaver</artifactId>
  289. <version>1.9.19</version>
  290. </dependency>-->
  291. <dependency>
  292. <groupId>org.bouncycastle</groupId>
  293. <artifactId>bcprov-jdk18on</artifactId>
  294. <version>1.74</version>
  295. </dependency>
  296. </dependencies>
  297. </dependencyManagement>
  298. <profiles>
  299. <profile>
  300. <id>dev</id>
  301. <properties>
  302. <profiles.active>dev</profiles.active>
  303. <nacos.server>10.10.10.230:8848</nacos.server>
  304. <nacos.namespace>sckw-service-platform-dev</nacos.namespace>
  305. </properties>
  306. </profile>
  307. <!--测试环境-->
  308. <profile>
  309. <id>test</id>
  310. <properties>
  311. <profiles.active>test</profiles.active>
  312. <nacos.server>10.10.10.224:8848</nacos.server>
  313. <nacos.namespace>sckw-service-platform</nacos.namespace>
  314. </properties>
  315. </profile>
  316. <!--生产环境-->
  317. <profile>
  318. <id>prod</id>
  319. <properties>
  320. <profiles.active>prod</profiles.active>
  321. <nacos.server>172.16.156.151:8848</nacos.server>
  322. <nacos.namespace>sckw-service-platform</nacos.namespace>
  323. </properties>
  324. </profile>
  325. </profiles>
  326. <build>
  327. <pluginManagement>
  328. <plugins>
  329. <plugin>
  330. <groupId>org.apache.maven.plugins</groupId>
  331. <artifactId>maven-clean-plugin</artifactId>
  332. <version>${maven-clean-plugin.version}</version>
  333. </plugin>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-compiler-plugin</artifactId>
  337. <version>${maven-compiler-plugin.version}</version>
  338. </plugin>
  339. <plugin>
  340. <groupId>org.apache.maven.plugins</groupId>
  341. <artifactId>maven-deploy-plugin</artifactId>
  342. <version>${maven-deploy-plugin.version}</version>
  343. </plugin>
  344. <plugin>
  345. <groupId>org.apache.maven.plugins</groupId>
  346. <artifactId>maven-install-plugin</artifactId>
  347. <version>${maven-install-plugin.version}</version>
  348. </plugin>
  349. <plugin>
  350. <groupId>org.apache.maven.plugins</groupId>
  351. <artifactId>maven-jar-plugin</artifactId>
  352. <version>${maven-jar-plugin.version}</version>
  353. </plugin>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-resources-plugin</artifactId>
  357. <version>${maven-resources-plugin.version}</version>
  358. <configuration>
  359. <propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding>
  360. <delimiters>
  361. <delimiter>@</delimiter>
  362. </delimiters>
  363. <useDefaultDelimiters>false</useDefaultDelimiters>
  364. </configuration>
  365. </plugin>
  366. <plugin>
  367. <groupId>org.springframework.boot</groupId>
  368. <artifactId>spring-boot-maven-plugin</artifactId>
  369. <version>${spring-boot.version}</version>
  370. </plugin>
  371. </plugins>
  372. </pluginManagement>
  373. <plugins>
  374. <plugin>
  375. <groupId>org.apache.maven.plugins</groupId>
  376. <artifactId>maven-clean-plugin</artifactId>
  377. </plugin>
  378. <plugin>
  379. <groupId>org.apache.maven.plugins</groupId>
  380. <artifactId>maven-deploy-plugin</artifactId>
  381. </plugin>
  382. <plugin>
  383. <groupId>org.apache.maven.plugins</groupId>
  384. <artifactId>maven-install-plugin</artifactId>
  385. </plugin>
  386. <plugin>
  387. <groupId>org.apache.maven.plugins</groupId>
  388. <artifactId>maven-compiler-plugin</artifactId>
  389. <configuration>
  390. <source>17</source>
  391. <target>17</target>
  392. <encoding>UTF-8</encoding>
  393. </configuration>
  394. </plugin>
  395. </plugins>
  396. <resources>
  397. <resource>
  398. <directory>src/main/resources</directory>
  399. <!-- 关闭过滤 -->
  400. <filtering>false</filtering>
  401. <includes>
  402. <include>**/*</include>
  403. </includes>
  404. </resource>
  405. <resource>
  406. <directory>src/main/resources</directory>
  407. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  408. <filtering>true</filtering>
  409. <!--资源-->
  410. <includes>
  411. <include>**/*.properties</include>
  412. <include>**/*.yml</include>
  413. </includes>
  414. </resource>
  415. </resources>
  416. </build>
  417. </project>