pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.huaxu</groupId>
  7. <artifactId>platform</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <modules>
  10. <module>user_auth</module>
  11. <module>user_center</module>
  12. <module>gateway</module>
  13. </modules>
  14. <!--父工程打包方式为pom-->
  15. <packaging>pom</packaging>
  16. <!--spring boot 父启动器依赖-->
  17. <parent>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-parent</artifactId>
  20. <version>2.1.6.RELEASE</version>
  21. </parent>
  22. <dependencyManagement>
  23. <dependencies>
  24. <!--spring cloud依赖管理,引入了Spring Cloud的版本-->
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-dependencies</artifactId>
  28. <version>Greenwich.RELEASE</version>
  29. <type>pom</type>
  30. <scope>import</scope>
  31. </dependency>
  32. <!--SCA -->
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  36. <version>2.1.0.RELEASE</version>
  37. <type>pom</type>
  38. <scope>import</scope>
  39. </dependency>
  40. <!--SCA -->
  41. </dependencies>
  42. </dependencyManagement>
  43. <dependencies>
  44. <!--web依赖-->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-web</artifactId>
  48. </dependency>
  49. <!--日志依赖-->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-logging</artifactId>
  53. </dependency>
  54. <!--测试依赖-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-test</artifactId>
  58. <scope>test</scope>
  59. </dependency>
  60. <!--lombok工具-->
  61. <dependency>
  62. <groupId>org.projectlombok</groupId>
  63. <artifactId>lombok</artifactId>
  64. <version>1.18.4</version>
  65. <scope>provided</scope>
  66. </dependency>
  67. <!-- Actuator可以帮助你监控和管理Spring Boot应用-->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-actuator</artifactId>
  71. </dependency>
  72. <!--热部署-->
  73. <!--<dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-devtools</artifactId>
  76. <optional>true</optional>
  77. </dependency>
  78. -->
  79. <!--&lt;!&ndash;spring cloud commons模块引入&ndash;&gt;
  80. <dependency>
  81. <groupId>org.springframework.cloud</groupId>
  82. <artifactId>spring-cloud-commons</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework.retry</groupId>
  86. <artifactId>spring-retry</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-aop</artifactId>
  91. </dependency>-->
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-jdbc</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>io.springfox</groupId>
  98. <artifactId>springfox-swagger2</artifactId>
  99. <version>2.7.0</version>
  100. <exclusions>
  101. <exclusion>
  102. <artifactId>guava</artifactId>
  103. <groupId>com.google.guava</groupId>
  104. </exclusion>
  105. <exclusion>
  106. <artifactId>guava</artifactId>
  107. <groupId>com.google.guava</groupId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <dependency>
  112. <groupId>io.springfox</groupId>
  113. <artifactId>springfox-swagger-ui</artifactId>
  114. <version>2.7.0</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.alibaba.cloud</groupId>
  118. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  119. <exclusions>
  120. <exclusion>
  121. <artifactId>guava</artifactId>
  122. <groupId>com.google.guava</groupId>
  123. </exclusion>
  124. <exclusion>
  125. <artifactId>guava</artifactId>
  126. <groupId>com.google.guava</groupId>
  127. </exclusion>
  128. <exclusion>
  129. <artifactId>guava</artifactId>
  130. <groupId>com.google.guava</groupId>
  131. </exclusion>
  132. <exclusion>
  133. <artifactId>guava</artifactId>
  134. <groupId>com.google.guava</groupId>
  135. </exclusion>
  136. </exclusions>
  137. </dependency>
  138. <dependency>
  139. <groupId>mysql</groupId>
  140. <artifactId>mysql-connector-java</artifactId>
  141. <version>5.1.47</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.baomidou</groupId>
  145. <artifactId>mybatis-plus-boot-starter</artifactId>
  146. <version>3.2.0</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.springframework.cloud</groupId>
  150. <artifactId>spring-cloud-starter-oauth2</artifactId>
  151. <exclusions>
  152. <exclusion>
  153. <groupId>org.springframework.security.oauth.boot</groupId>
  154. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  155. </exclusion>
  156. </exclusions>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.springframework.security.oauth.boot</groupId>
  160. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  161. <version>2.1.11.RELEASE</version>
  162. <exclusions>
  163. <exclusion>
  164. <artifactId>jaxb-runtime</artifactId>
  165. <groupId>org.glassfish.jaxb</groupId>
  166. </exclusion>
  167. <exclusion>
  168. <artifactId>spring-security-oauth2</artifactId>
  169. <groupId>org.springframework.security.oauth</groupId>
  170. </exclusion>
  171. </exclusions>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.springframework.security.oauth</groupId>
  175. <artifactId>spring-security-oauth2</artifactId>
  176. <version>2.3.4.RELEASE</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.google.guava</groupId>
  180. <artifactId>guava</artifactId>
  181. <version>20.0</version>
  182. <scope>compile</scope>
  183. </dependency>
  184. </dependencies>
  185. <build>
  186. <plugins>
  187. <!--编译插件-->
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-compiler-plugin</artifactId>
  191. <configuration>
  192. <source>8</source>
  193. <target>8</target>
  194. <encoding>utf-8</encoding>
  195. </configuration>
  196. </plugin>
  197. <!--打包插件-->
  198. <plugin>
  199. <groupId>org.springframework.boot</groupId>
  200. <artifactId>spring-boot-maven-plugin</artifactId>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. </project>