pom.xml 6.9 KB

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