pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <groupId>com.yaozhitech</groupId>
  6. <artifactId>spring5-auth</artifactId>
  7. <packaging>jar</packaging>
  8. <version>0.1.0</version>
  9. <name>${project.artifactId}</name>
  10. <description>spring5 demo</description>
  11. <!-- Spring Boot 启动父依赖 -->
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.1.4.RELEASE</version>
  16. <relativePath />
  17. </parent>
  18. <properties>
  19. <maven.compiler.source>1.8</maven.compiler.source>
  20. <maven.compiler.target>1.8</maven.compiler.target>
  21. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  22. <spring-cloud.version>2.1.4.RELEASE</spring-cloud.version>
  23. </properties>
  24. <dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-dependencies</artifactId>
  29. <version>Greenwich.RELEASE</version>
  30. <type>pom</type>
  31. <scope>import</scope>
  32. </dependency>
  33. </dependencies>
  34. </dependencyManagement>
  35. <dependencies>
  36. <!--自省和监控的集成功能-->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-actuator</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-starter</artifactId>
  44. </dependency>
  45. <!-- 网关 -->
  46. <dependency>
  47. <groupId>org.springframework.cloud</groupId>
  48. <artifactId>spring-cloud-starter-gateway</artifactId>
  49. </dependency>
  50. <!-- hystrix -->
  51. <dependency>
  52. <groupId>org.springframework.cloud</groupId>
  53. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  54. </dependency>
  55. <!-- 最新推荐的断路器 -->
  56. <!-- <dependency> -->
  57. <!-- <groupId>org.springframework.cloud</groupId> -->
  58. <!-- <artifactId>spring-cloud-starter-circuitbreaker-reactor-resilience4j</artifactId> -->
  59. <!-- </dependency> -->
  60. <!-- Spring Boot Web Flux 依赖 -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-webflux</artifactId>
  64. </dependency>
  65. <!-- Spring Boot 响应式 Redis 依赖 -->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.alicp.jetcache</groupId>
  72. <artifactId>jetcache-starter-redis</artifactId>
  73. <version>2.6.0.M3</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.alicp.jetcache</groupId>
  77. <artifactId>jetcache-redis-lettuce</artifactId>
  78. <version>2.6.0.M3</version>
  79. </dependency>
  80. <!-- Spring test 依赖 -->
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-test</artifactId>
  84. <scope>test</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>junit</groupId>
  88. <artifactId>junit</artifactId>
  89. <scope>test</scope>
  90. </dependency>
  91. <!-- 集成wireMock来实现mock请求响应。wireMock会自动构建一个虚拟远程服务 -->
  92. <dependency>
  93. <groupId>org.springframework.cloud</groupId>
  94. <artifactId>spring-cloud-contract-wiremock</artifactId>
  95. <scope>test</scope>
  96. </dependency>
  97. <!-- 提供打包预定义数据服务 -->
  98. <dependency>
  99. <groupId>org.springframework.cloud</groupId>
  100. <artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. <!-- 自动生成单元测试代码 -->
  104. <dependency>
  105. <groupId>org.springframework.cloud</groupId>
  106. <artifactId>spring-cloud-starter-contract-verifier</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.github.tomakehurst</groupId>
  111. <artifactId>wiremock-standalone</artifactId>
  112. <version>2.18.0</version>
  113. <scope>test</scope>
  114. </dependency>
  115. <!-- lombok依赖包 -->
  116. <dependency>
  117. <groupId>org.projectlombok</groupId>
  118. <artifactId>lombok</artifactId>
  119. </dependency>
  120. </dependencies>
  121. </project>