pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <groupId>com.sunwin.gateway</groupId>
  5. <artifactId>bmp-gateway</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <properties>
  8. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  9. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  10. <!-- <project.basedir>E:\IDEAWorkSpace\ROBOT-APP\code\SW_BIRD_MS\02.Development\bmp-gateway</project.basedir>-->
  11. <java.version>1.8</java.version>
  12. <skipTests>true</skipTests>
  13. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  14. <spring.cloud-version>2020.0.3</spring.cloud-version>
  15. <spring-cloud-alibaba-version>2021.1</spring-cloud-alibaba-version>
  16. <log4j2.version>2.17.2</log4j2.version>
  17. </properties>
  18. <parent>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-parent</artifactId>
  21. <version>2.5.4</version>
  22. <relativePath /> <!-- lookup parent from repository -->
  23. </parent>
  24. <dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-dependencies</artifactId>
  29. <version>${spring.cloud-version}</version>
  30. <type>pom</type>
  31. <scope>import</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  36. <version>${spring-cloud-alibaba-version}</version>
  37. <type>pom</type>
  38. <scope>import</scope>
  39. </dependency>
  40. </dependencies>
  41. </dependencyManagement>
  42. <dependencies>
  43. <dependency>
  44. <groupId>com.sunwin.common</groupId>
  45. <artifactId>bmp-common</artifactId>
  46. <version>0.0.1-SNAPSHOT</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.cloud</groupId>
  50. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-test</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>junit</groupId>
  59. <artifactId>junit</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  64. </dependency>
  65. <!-- gateway中不能有 -->
  66. <!-- <dependency> -->
  67. <!-- <groupId>org.springframework.boot</groupId> -->
  68. <!-- <artifactId>spring-boot-starter-web</artifactId> -->
  69. <!-- </dependency> -->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-actuator</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.cloud</groupId>
  76. <artifactId>spring-cloud-starter-gateway</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-data-redis</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-loadbalancer</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework.cloud</groupId>
  88. <artifactId>spring-cloud-starter-openfeign</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>com.alibaba.cloud</groupId>
  92. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.alibaba.cloud</groupId>
  96. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  97. </dependency>
  98. <!-- jwtToken -->
  99. <dependency>
  100. <groupId>io.jsonwebtoken</groupId>
  101. <artifactId>jjwt</artifactId>
  102. <version>0.9.0</version>
  103. </dependency>
  104. <!-- 使@DateTimeFormat注解将字符串转日期 -->
  105. <dependency>
  106. <groupId>joda-time</groupId>
  107. <artifactId>joda-time</artifactId>
  108. <version>2.10.10</version>
  109. </dependency>
  110. <!--swagger用于定义API文档 -->
  111. <dependency>
  112. <groupId>io.springfox</groupId>
  113. <artifactId>springfox-swagger2</artifactId>
  114. <version>2.9.2</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>io.springfox</groupId>
  118. <artifactId>springfox-swagger-ui</artifactId>
  119. <version>2.9.2</version>
  120. </dependency>
  121. <!--美化swagger -->
  122. <dependency>
  123. <groupId>com.github.xiaoymin</groupId>
  124. <artifactId>swagger-bootstrap-ui</artifactId>
  125. <version>1.7</version>
  126. </dependency>
  127. </dependencies>
  128. <build>
  129. <plugins>
  130. <plugin>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-maven-plugin</artifactId>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>