pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.ytpm</groupId>
  6. <artifactId>yt_platform</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>yt-gateway</artifactId>
  10. <packaging>jar</packaging>
  11. <description>网关</description>
  12. <name>yt-gateway</name>
  13. <url>http://maven.apache.org</url>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.cloud</groupId>
  20. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.cloud</groupId>
  24. <artifactId>spring-cloud-alibaba-nacos-discovery</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-starter-gateway</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  33. </dependency>
  34. <!-- 集群必备 -->
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  38. <version>2.2.0.RELEASE</version>
  39. </dependency>
  40. </dependencies>
  41. <build>
  42. <finalName>yt-gateway</finalName>
  43. <plugins>
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-compiler-plugin</artifactId>
  47. <version>3.8.1</version>
  48. <configuration>
  49. <source>8</source>
  50. <target>8</target>
  51. <encoding>utf-8</encoding>
  52. </configuration>
  53. </plugin>
  54. <plugin>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-maven-plugin</artifactId>
  57. <version>2.5.3</version>
  58. <executions>
  59. <execution>
  60. <phase>package</phase>
  61. <goals>
  62. <goal>repackage</goal>
  63. </goals>
  64. </execution>
  65. </executions>
  66. <configuration>
  67. <includeSystemScope>true</includeSystemScope>
  68. <mainClass>com.ytpm.GatewayApplication</mainClass>
  69. </configuration>
  70. </plugin>
  71. </plugins>
  72. </build>
  73. </project>