pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  3. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.crunii.microservice</groupId>
  7. <artifactId>microservice</artifactId>
  8. <version>${micro.version}</version>
  9. </parent>
  10. <artifactId>micro-gateway</artifactId>
  11. <name>micro-gateway</name>
  12. <packaging>jar</packaging>
  13. <properties>
  14. <start-class>com.crunii.micro.gateway.Application</start-class>
  15. </properties>
  16. <dependencyManagement>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-dependencies</artifactId>
  21. <version>${boot.dependencies.version}</version>
  22. <type>pom</type>
  23. <scope>import</scope>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-dependencies</artifactId>
  28. <version>${cloud.dependencies.version}</version>
  29. <type>pom</type>
  30. <scope>import</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.alibaba.cloud</groupId>
  34. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  35. <version>${alibaba.dependencies.version}</version>
  36. <type>pom</type>
  37. <scope>import</scope>
  38. </dependency>
  39. </dependencies>
  40. </dependencyManagement>
  41. <dependencies>
  42. <dependency>
  43. <groupId>com.crunii.microservice</groupId>
  44. <artifactId>micro-domain</artifactId>
  45. <exclusions>
  46. <exclusion>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-web</artifactId>
  49. </exclusion>
  50. <exclusion>
  51. <artifactId>reactor-core</artifactId>
  52. <groupId>io.projectreactor</groupId>
  53. </exclusion>
  54. </exclusions>
  55. </dependency>
  56. <!-- 注意冲突 -->
  57. <dependency>
  58. <groupId>io.projectreactor</groupId>
  59. <artifactId>reactor-core</artifactId>
  60. <version>3.4.25</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.crunii.microservice</groupId>
  64. <artifactId>micro-datasource</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.cloud</groupId>
  68. <artifactId>spring-cloud-starter-gateway</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-data-redis</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-cache</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.alibaba.cloud</groupId>
  80. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>com.alibaba.nacos</groupId>
  84. <artifactId>nacos-client</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.alibaba.cloud</groupId>
  90. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  91. <exclusions>
  92. <exclusion>
  93. <groupId>com.alibaba.nacos</groupId>
  94. <artifactId>nacos-client</artifactId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework.cloud</groupId>
  100. <artifactId>spring-cloud-starter-circuitbreaker-reactor-resilience4j</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-test</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>junit</groupId>
  109. <artifactId>junit</artifactId>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-maven-plugin</artifactId>
  117. <version>${boot.maven.version}</version>
  118. <configuration>
  119. <mainClass>${start-class}</mainClass>
  120. <classifier>exec</classifier>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>repackage</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. </project>