pom.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <parent>
  6. <groupId>com.jt.cloud</groupId>
  7. <artifactId>jt-framework</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>jt-spring-boot-starter-monitor</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>服务监控,提供链路追踪、日志服务、指标收集等等功能</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.jt.cloud</groupId>
  18. <artifactId>jt-common</artifactId>
  19. </dependency>
  20. <!-- Spring 核心 -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-aop</artifactId>
  24. </dependency>
  25. <!-- Web 相关 -->
  26. <dependency>
  27. <groupId>org.springframework</groupId>
  28. <artifactId>spring-web</artifactId>
  29. <scope>provided</scope> <!-- 设置为 provided,只有 TraceFilter 使用 -->
  30. </dependency>
  31. <dependency>
  32. <groupId>jakarta.servlet</groupId>
  33. <artifactId>jakarta.servlet-api</artifactId>
  34. <scope>provided</scope> <!-- 设置为 provided,只有 TraceFilter 使用 -->
  35. </dependency>
  36. <!-- 监控相关 -->
  37. <dependency>
  38. <groupId>io.opentracing</groupId>
  39. <artifactId>opentracing-util</artifactId>
  40. <optional>true</optional>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.skywalking</groupId>
  44. <artifactId>apm-toolkit-trace</artifactId>
  45. <optional>true</optional>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.skywalking</groupId>
  49. <artifactId>apm-toolkit-logback-1.x</artifactId>
  50. <optional>true</optional>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.skywalking</groupId>
  54. <artifactId>apm-toolkit-opentracing</artifactId>
  55. <optional>true</optional>
  56. </dependency>
  57. <!-- Micrometer 对 Prometheus 的支持 -->
  58. <dependency>
  59. <groupId>io.micrometer</groupId>
  60. <artifactId>micrometer-registry-prometheus</artifactId>
  61. <optional>true</optional>
  62. </dependency>
  63. <dependency>
  64. <groupId>de.codecentric</groupId>
  65. <artifactId>spring-boot-admin-starter-client</artifactId> <!-- 实现 Spring Boot Admin Client 客户端 -->
  66. <!-- <optional>true</optional>-->
  67. </dependency>
  68. </dependencies>
  69. </project>