pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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>jeecg-cloud-module</artifactId>
  7. <groupId>org.jeecgframework.boot</groupId>
  8. <version>2.4.5</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>jeecg-cloud-gateway</artifactId>
  12. <dependencies>
  13. <!-- jeecg 微服务基础依赖-->
  14. <dependency>
  15. <groupId>org.jeecgframework.boot</groupId>
  16. <artifactId>jeecg-boot-starter-cloud</artifactId>
  17. <exclusions>
  18. <exclusion>
  19. <groupId>org.jeecgframework.boot</groupId>
  20. <artifactId>jeecg-system-cloud-api</artifactId>
  21. </exclusion>
  22. </exclusions>
  23. </dependency>
  24. <!-- spring-cloud网关-->
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-gateway</artifactId>
  28. </dependency>
  29. <!-- 限流Redis实现 -->
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  33. </dependency>
  34. <!--springboot2.X默认使用lettuce连接池,需要引入commons-pool2-->
  35. <dependency>
  36. <groupId>org.apache.commons</groupId>
  37. <artifactId>commons-pool2</artifactId>
  38. </dependency>
  39. <!--server-api-->
  40. <dependency>
  41. <groupId>javax.servlet</groupId>
  42. <artifactId>javax.servlet-api</artifactId>
  43. </dependency>
  44. <!-- Swagger API文档 -->
  45. <dependency>
  46. <groupId>com.github.xiaoymin</groupId>
  47. <artifactId>knife4j-spring-ui</artifactId>
  48. <version>${knife4j-spring-ui.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.github.xiaoymin</groupId>
  52. <artifactId>knife4j-spring-boot-starter</artifactId>
  53. <version>${knife4j-spring-boot-starter.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.cloud</groupId>
  57. <artifactId>spring-cloud-openfeign-core</artifactId>
  58. <version>2.2.5.RELEASE</version>
  59. <scope>compile</scope>
  60. </dependency>
  61. </dependencies>
  62. <build>
  63. <plugins>
  64. <plugin>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-maven-plugin</artifactId>
  67. </plugin>
  68. </plugins>
  69. <resources>
  70. <resource>
  71. <directory>src/main/resources</directory>
  72. <filtering>true</filtering>
  73. </resource>
  74. </resources>
  75. </build>
  76. <profiles>
  77. <!-- 开发 -->
  78. <profile>
  79. <id>dev</id>
  80. <properties>
  81. <activatedProperties>dev</activatedProperties>
  82. </properties>
  83. </profile>
  84. <!-- 测试 -->
  85. <profile>
  86. <id>test</id>
  87. <properties>
  88. <activatedProperties>test</activatedProperties>
  89. </properties>
  90. </profile>
  91. <!-- 生产 -->
  92. <profile>
  93. <id>prod</id>
  94. <properties>
  95. <activatedProperties>prod</activatedProperties>
  96. </properties>
  97. </profile>
  98. </profiles>
  99. </project>