pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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>edu.travel</groupId>
  6. <artifactId>EduTravel</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>edu-travel-gateway</artifactId>
  10. <packaging>jar</packaging>
  11. <name>edu-travel-gateway</name>
  12. <url>http://maven.apache.org</url>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.alibaba.cloud</groupId>
  19. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.alibaba.cloud</groupId>
  23. <artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.alibaba.csp</groupId>
  27. <artifactId>sentinel-spring-cloud-gateway-adapter</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.cloud</groupId>
  31. <artifactId>spring-cloud-starter-zipkin</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.alibaba.cloud</groupId>
  39. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-starter-gateway</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.security</groupId>
  47. <artifactId>spring-security-oauth2-resource-server</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.cloud</groupId>
  51. <artifactId>spring-cloud-starter-oauth2</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.security</groupId>
  55. <artifactId>spring-security-oauth2-jose</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-actuator</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.nimbusds</groupId>
  63. <artifactId>nimbus-jose-jwt</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.commons</groupId>
  67. <artifactId>commons-lang3</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>fastjson</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.projectlombok</groupId>
  75. <artifactId>lombok</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.cloud</groupId>
  79. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>edu.travel</groupId>
  83. <artifactId>edu-travel-common-constant</artifactId>
  84. <version>1.0-SNAPSHOT</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>edu.travel</groupId>
  88. <artifactId>edu-travel-common-util</artifactId>
  89. <version>1.0-SNAPSHOT</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>edu.travel</groupId>
  93. <artifactId>edu-travel-common-resp</artifactId>
  94. <version>1.0-SNAPSHOT</version>
  95. </dependency>
  96. </dependencies>
  97. <profiles>
  98. <profile>
  99. <id>dev</id>
  100. <properties>
  101. <env>dev</env>
  102. <versionCode>${version}-SNAPSHOT</versionCode>
  103. <spark.compiler.score>compile</spark.compiler.score>
  104. </properties>
  105. <activation>
  106. <activeByDefault>true</activeByDefault>
  107. </activation>
  108. </profile>
  109. <profile>
  110. <id>prod</id>
  111. <properties>
  112. <env>prod</env>
  113. <versionCode>${version}</versionCode>
  114. <spark.compiler.score>provided</spark.compiler.score>
  115. </properties>
  116. </profile>
  117. </profiles>
  118. <build>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-resources-plugin</artifactId>
  123. <configuration>
  124. <delimiters>@</delimiters>
  125. <useDefaultDelimiters>false</useDefaultDelimiters>
  126. </configuration>
  127. </plugin>
  128. <!-- 打包插件 -->
  129. <plugin>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-maven-plugin</artifactId>
  132. </plugin>
  133. <!-- maven 打包时跳过测试 -->
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-surefire-plugin</artifactId>
  137. <configuration>
  138. <skipTests>true</skipTests>
  139. </configuration>
  140. </plugin>
  141. </plugins>
  142. <resources>
  143. <resource>
  144. <directory>src/main/resources</directory>
  145. <!--开启过滤,用指定的参数替换directory下的文件中的参数-->
  146. <filtering>true</filtering>
  147. </resource>
  148. </resources>
  149. </build>
  150. </project>