pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. <artifactId>gateway</artifactId>
  7. <!--spring boot 父启动器依赖-->
  8. <parent>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-starter-parent</artifactId>
  11. <version>2.1.6.RELEASE</version>
  12. </parent>
  13. <dependencyManagement>
  14. <!--spring cloud依赖版本管理-->
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.cloud</groupId>
  18. <artifactId>spring-cloud-dependencies</artifactId>
  19. <version>Greenwich.RELEASE</version>
  20. <type>pom</type>
  21. <scope>import</scope>
  22. </dependency>
  23. <!--SCA -->
  24. <dependency>
  25. <groupId>com.alibaba.cloud</groupId>
  26. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  27. <version>2.1.0.RELEASE</version>
  28. <type>pom</type>
  29. <scope>import</scope>
  30. </dependency>
  31. </dependencies>
  32. </dependencyManagement>
  33. <dependencies>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-data-redis</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.cloud</groupId>
  40. <artifactId>spring-cloud-commons</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.cloud</groupId>
  44. <artifactId>spring-cloud-starter-gateway</artifactId>
  45. </dependency>
  46. <!--引入webflux-->
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-webflux</artifactId>
  50. </dependency>
  51. <!--日志依赖-->
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-logging</artifactId>
  55. </dependency>
  56. <!--测试依赖-->
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-test</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <!--lombok工具-->
  63. <dependency>
  64. <groupId>org.projectlombok</groupId>
  65. <artifactId>lombok</artifactId>
  66. <version>1.18.4</version>
  67. <scope>provided</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>io.springfox</groupId>
  71. <artifactId>springfox-swagger2</artifactId>
  72. <version>2.9.2</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>io.springfox</groupId>
  76. <artifactId>springfox-swagger-ui</artifactId>
  77. <version>2.7.0</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.alibaba.cloud</groupId>
  81. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  82. </dependency>
  83. </dependencies>
  84. <build>
  85. <plugins>
  86. <!--编译插件-->
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-compiler-plugin</artifactId>
  90. <version>3.8.1</version>
  91. <configuration>
  92. <source>8</source>
  93. <target>8</target>
  94. <encoding>utf-8</encoding>
  95. </configuration>
  96. </plugin>
  97. <!--打包插件-->
  98. <plugin>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-maven-plugin</artifactId>
  101. </plugin>
  102. </plugins>
  103. </build>
  104. </project>