pom.xml 5.2 KB

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