pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <groupId>com.ywt</groupId>
  7. <artifactId>ywt-parent</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>ywt-gateway</artifactId>
  12. <packaging>jar</packaging>
  13. <!-- 对组件进行个性化设置 -->
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-starter-actuator</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.alibaba.cloud</groupId>
  21. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.cloud</groupId>
  25. <artifactId>spring-cloud-starter-gateway</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>ch.qos.logback</groupId>
  29. <artifactId>logback-classic</artifactId>
  30. </dependency>
  31. <!--得不加上这个配置,不然会报503-->
  32. <dependency>
  33. <groupId>org.springframework.cloud</groupId>
  34. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.slf4j</groupId>
  38. <artifactId>slf4j-api</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.projectlombok</groupId>
  42. <artifactId>lombok</artifactId>
  43. <optional>true</optional>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-data-redis</artifactId>
  48. <scope>provided</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.redisson</groupId>
  52. <artifactId>redisson</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>cn.hutool</groupId>
  56. <artifactId>hutool-json</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>cn.hutool</groupId>
  60. <artifactId>hutool-jwt</artifactId>
  61. </dependency>
  62. </dependencies>
  63. <profiles>
  64. <profile>
  65. <id>dev</id>
  66. <activation>
  67. <activeByDefault>true</activeByDefault>
  68. </activation>
  69. <properties>
  70. <active.profile>dev</active.profile>
  71. </properties>
  72. </profile>
  73. <profile>
  74. <id>test</id>
  75. <properties>
  76. <active.profile>test</active.profile>
  77. </properties>
  78. </profile>
  79. <profile>
  80. <id>product</id>
  81. <properties>
  82. <active.profile>product</active.profile>
  83. </properties>
  84. </profile>
  85. </profiles>
  86. <build>
  87. <filters>
  88. <filter>config_filters/filters-${active.profile}.properties</filter>
  89. </filters>
  90. <resources>
  91. <resource>
  92. <directory>src/main/resources</directory>
  93. <filtering>true</filtering>
  94. </resource>
  95. </resources>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-compiler-plugin</artifactId>
  100. <version>3.2</version>
  101. <configuration>
  102. <source>1.8</source>
  103. <target>1.8</target>
  104. <encoding>utf-8</encoding>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-maven-plugin</artifactId>
  110. <executions>
  111. <execution>
  112. <goals>
  113. <goal>repackage</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. </project>