pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>3.2.4</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.sf</groupId>
  12. <artifactId>eureka-client-caller-demo</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>eureka-client-caller-demo</name>
  15. <description>eureka-client-caller-demo</description>
  16. <properties>
  17. <java.version>17</java.version>
  18. <spring-cloud.version>2023.0.1</spring-cloud.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.cloud</groupId>
  31. <artifactId>spring-cloud-starter-openfeign</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.projectlombok</groupId>
  35. <artifactId>lombok</artifactId>
  36. <version>1.18.32</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.cloud</groupId>
  40. <artifactId>spring-cloud-starter-circuitbreaker-resilience4j</artifactId>
  41. </dependency>
  42. <!-- 由于断路保护等需要AOP实现,所以必须导入AOP包 -->
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-aop</artifactId>
  46. </dependency>
  47. <!--micrometer-tracing指标追踪 1-->
  48. <dependency>
  49. <groupId>io.micrometer</groupId>
  50. <artifactId>micrometer-tracing</artifactId>
  51. </dependency>
  52. <!--micrometer-tracing-bridge-brave适配zipkin的桥接包 2-->
  53. <dependency>
  54. <groupId>io.micrometer</groupId>
  55. <artifactId>micrometer-tracing-bridge-brave</artifactId>
  56. </dependency>
  57. <!--micrometer-observation 3-->
  58. <dependency>
  59. <groupId>io.micrometer</groupId>
  60. <artifactId>micrometer-observation</artifactId>
  61. </dependency>
  62. <!--feign-micrometer 4-->
  63. <dependency>
  64. <groupId>io.github.openfeign</groupId>
  65. <artifactId>feign-micrometer</artifactId>
  66. </dependency>
  67. <!--zipkin-reporter-brave 5-->
  68. <dependency>
  69. <groupId>io.zipkin.reporter2</groupId>
  70. <artifactId>zipkin-reporter-brave</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-actuator</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-test</artifactId>
  79. <scope>test</scope>
  80. </dependency>
  81. </dependencies>
  82. <dependencyManagement>
  83. <dependencies>
  84. <dependency>
  85. <groupId>org.springframework.cloud</groupId>
  86. <artifactId>spring-cloud-dependencies</artifactId>
  87. <version>${spring-cloud.version}</version>
  88. <type>pom</type>
  89. <scope>import</scope>
  90. </dependency>
  91. </dependencies>
  92. </dependencyManagement>
  93. <build>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-maven-plugin</artifactId>
  98. </plugin>
  99. </plugins>
  100. </build>
  101. </project>