pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. <artifactId>orbit-base-gateway</artifactId>
  7. <groupId>orbit.base.server</groupId>
  8. <version>0.0.1</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>base-gateway-service</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <!-- nacos注册 -->
  18. <dependency>
  19. <groupId>com.alibaba.cloud</groupId>
  20. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  21. </dependency>
  22. <!-- nacos配置-->
  23. <dependency>
  24. <groupId>com.alibaba.cloud</groupId>
  25. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  26. </dependency>
  27. <!-- spring-cloud-dependencies 2020.0.1 版本不在默认加载bootstrap 文件
  28. 引入该依赖读取bootstrap文件 -->
  29. <dependency>
  30. <groupId>org.springframework.cloud</groupId>
  31. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  32. </dependency>
  33. <!-- 网关依赖 -->
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-starter-gateway</artifactId>
  37. <exclusions>
  38. <exclusion>
  39. <groupId>org.springframework.cloud</groupId>
  40. <artifactId>spring-cloud-gateway-server</artifactId>
  41. </exclusion>
  42. <exclusion>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. </exclusion>
  46. <exclusion>
  47. <groupId>com.baomidou</groupId>
  48. <artifactId>mybatis-plus-boot-starter</artifactId>
  49. </exclusion>
  50. </exclusions>
  51. </dependency>
  52. <!-- openFeign -->
  53. <dependency>
  54. <groupId>org.springframework.cloud</groupId>
  55. <artifactId>spring-cloud-starter-openfeign</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.cloud</groupId>
  59. <artifactId>spring-cloud-gateway-server</artifactId>
  60. <version>3.0.0</version>
  61. </dependency>
  62. <!--Security依赖 -->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-security</artifactId>
  66. <version>2.4.2</version>
  67. </dependency>
  68. <!--客户端负载均衡loadbalancer-->
  69. <dependency>
  70. <groupId>org.springframework.cloud</groupId>
  71. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  72. </dependency>
  73. <!-- knife4j版本-->
  74. <dependency>
  75. <groupId>com.github.xiaoymin</groupId>
  76. <artifactId>knife4j-spring-boot-starter</artifactId>
  77. <version>2.0.4</version>
  78. </dependency>
  79. </dependencies>
  80. <build>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-maven-plugin</artifactId>
  85. <executions>
  86. <execution>
  87. <goals>
  88. <goal>repackage</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. </project>