pom.xml 7.1 KB

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