pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 1999-2019 Seata.io Group.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <parent>
  21. <groupId>org.dromara</groupId>
  22. <artifactId>ruoyi-visual</artifactId>
  23. <version>${revision}</version>
  24. </parent>
  25. <modelVersion>4.0.0</modelVersion>
  26. <artifactId>ruoyi-seata-server</artifactId>
  27. <packaging>jar</packaging>
  28. <properties>
  29. <seata.version>1.7.1</seata.version>
  30. <spring-boot.version>2.7.18</spring-boot.version>
  31. <logstash-logback-encoder.version>7.2</logstash-logback-encoder.version>
  32. <jedis.version>3.8.0</jedis.version>
  33. </properties>
  34. <dependencyManagement>
  35. <dependencies>
  36. <!-- SpringBoot 依赖配置 -->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-dependencies</artifactId>
  40. <version>${spring-boot.version}</version>
  41. <type>pom</type>
  42. <scope>import</scope>
  43. </dependency>
  44. </dependencies>
  45. </dependencyManagement>
  46. <dependencies>
  47. <!-- SpringBoot Web容器 -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-web</artifactId>
  51. <exclusions>
  52. <exclusion>
  53. <artifactId>*</artifactId>
  54. <groupId>org.apache.logging.log4j</groupId>
  55. </exclusion>
  56. </exclusions>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.seata</groupId>
  60. <artifactId>seata-server</artifactId>
  61. <version>${seata.version}</version>
  62. <exclusions>
  63. <exclusion>
  64. <artifactId>slf4j-reload4j</artifactId>
  65. <groupId>org.slf4j</groupId>
  66. </exclusion>
  67. </exclusions>
  68. </dependency>
  69. <!-- 覆盖 tomcat version 避免CVE-2024-24549-->
  70. <dependency>
  71. <groupId>org.apache.tomcat.embed</groupId>
  72. <artifactId>tomcat-embed-websocket</artifactId>
  73. <version>9.0.98</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.tomcat.embed</groupId>
  77. <artifactId>tomcat-embed-core</artifactId>
  78. <version>9.0.98</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.tomcat.embed</groupId>
  82. <artifactId>tomcat-embed-el</artifactId>
  83. <version>9.0.98</version>
  84. </dependency>
  85. <!-- jedis -->
  86. <dependency>
  87. <groupId>redis.clients</groupId>
  88. <artifactId>jedis</artifactId>
  89. <version>${jedis.version}</version>
  90. </dependency>
  91. <!-- logback appenders -->
  92. <dependency>
  93. <groupId>net.logstash.logback</groupId>
  94. <artifactId>logstash-logback-encoder</artifactId>
  95. <version>${logstash-logback-encoder.version}</version>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <finalName>${project.artifactId}</finalName>
  100. <plugins>
  101. <plugin>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-maven-plugin</artifactId>
  104. <version>${spring-boot.version}</version>
  105. <executions>
  106. <execution>
  107. <goals>
  108. <goal>repackage</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. </project>