pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. </dependencies>
  46. <profiles>
  47. <profile>
  48. <id>dev</id>
  49. <activation>
  50. <activeByDefault>true</activeByDefault>
  51. </activation>
  52. <properties>
  53. <active.profile>dev</active.profile>
  54. </properties>
  55. </profile>
  56. <profile>
  57. <id>test</id>
  58. <properties>
  59. <active.profile>test</active.profile>
  60. </properties>
  61. </profile>
  62. <profile>
  63. <id>product</id>
  64. <properties>
  65. <active.profile>product</active.profile>
  66. </properties>
  67. </profile>
  68. <profile>
  69. <id>preproduct</id>
  70. <properties>
  71. <active.profile>preproduct</active.profile>
  72. </properties>
  73. </profile>
  74. </profiles>
  75. <build>
  76. <filters>
  77. <filter>config_filters/filters-${active.profile}.properties</filter>
  78. </filters>
  79. <resources>
  80. <resource>
  81. <directory>src/main/resources</directory>
  82. <filtering>true</filtering>
  83. <includes>
  84. <include>**/application.yml</include>
  85. </includes>
  86. </resource>
  87. </resources>
  88. <plugins>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-compiler-plugin</artifactId>
  92. <version>3.2</version>
  93. <configuration>
  94. <source>1.8</source>
  95. <target>1.8</target>
  96. <encoding>utf-8</encoding>
  97. </configuration>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-maven-plugin</artifactId>
  102. </plugin>
  103. </plugins>
  104. </build>
  105. </project>