pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <!--springBoot parent version -->
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.0.4.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <!--model-->
  13. <groupId>com.chinaitop</groupId>
  14. <artifactId>depot-shared-qinghai</artifactId>
  15. <version>0.0.1-SNAPSHOT</version>
  16. <name>depot-shared-qinghai</name>
  17. <!--model description-->
  18. <description>Shared project for Spring Boot</description>
  19. <!--tools version management-->
  20. <properties>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  23. <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
  24. <java.version>1.8</java.version>
  25. <skipTests>true</skipTests>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>mysql</groupId>
  30. <artifactId>mysql-connector-java</artifactId>
  31. </dependency>
  32. <!-- redis -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-data-redis</artifactId>
  36. </dependency>
  37. <!-- mybatis -->
  38. <dependency>
  39. <groupId>org.mybatis.spring.boot</groupId>
  40. <artifactId>mybatis-spring-boot-starter</artifactId>
  41. <version>1.3.1</version>
  42. </dependency>
  43. <!-- swagger2 -->
  44. <dependency>
  45. <groupId>io.springfox</groupId>
  46. <artifactId>springfox-swagger2</artifactId>
  47. <version>2.6.1</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>io.springfox</groupId>
  51. <artifactId>springfox-swagger-ui</artifactId>
  52. <version>2.6.1</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-devtools</artifactId>
  57. <optional>true</optional>
  58. </dependency>
  59. <!-- 引入spring boot自带的pagehelper插件 -->
  60. <dependency>
  61. <groupId>com.github.pagehelper</groupId>
  62. <artifactId>pagehelper-spring-boot-starter</artifactId>
  63. <version>1.2.3</version>
  64. </dependency>
  65. <!-- commons工具类jar -->
  66. <dependency>
  67. <groupId>org.apache.commons</groupId>
  68. <artifactId>commons-lang3</artifactId>
  69. <version>3.9</version>
  70. </dependency>
  71. <!-- 阿里巴巴json -->
  72. <dependency>
  73. <groupId>com.alibaba</groupId>
  74. <artifactId>fastjson</artifactId>
  75. <version>1.2.37</version>
  76. </dependency>
  77. <!--poi-->
  78. <dependency>
  79. <groupId>org.apache.poi</groupId>
  80. <artifactId>poi-ooxml</artifactId>
  81. <version>3.9</version>
  82. </dependency>
  83. <!-- 日志-->
  84. <dependency>
  85. <groupId>ch.qos.logback</groupId>
  86. <artifactId>logback-classic</artifactId>
  87. </dependency>
  88. <!-- springCloud dependency -->
  89. <dependency>
  90. <groupId>org.springframework.cloud</groupId>
  91. <artifactId>spring-cloud-starter-config</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-web</artifactId>
  96. </dependency>
  97. <!-- 导入eureka-client服务的依赖 -->
  98. <dependency>
  99. <groupId>org.springframework.cloud</groupId>
  100. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  101. </dependency>
  102. <!-- springBoot test dependency -->
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-test</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. <!-- feign -->
  109. <dependency>
  110. <groupId>org.springframework.cloud</groupId>
  111. <artifactId>spring-cloud-starter-openfeign</artifactId>
  112. </dependency>
  113. <!-- hystrix 熔断-->
  114. <dependency>
  115. <groupId>org.springframework.cloud</groupId>
  116. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  117. </dependency>
  118. <!-- lombok -->
  119. <dependency>
  120. <groupId>org.projectlombok</groupId>
  121. <artifactId>lombok</artifactId>
  122. <version>1.18.22</version>
  123. <scope>provided</scope>
  124. </dependency>
  125. </dependencies>
  126. <!-- 导入Spring Cloud的依赖管理 -->
  127. <dependencyManagement>
  128. <dependencies>
  129. <dependency>
  130. <groupId>org.springframework.cloud</groupId>
  131. <artifactId>spring-cloud-dependencies</artifactId>
  132. <version>${spring-cloud.version}</version>
  133. <type>pom</type>
  134. <scope>import</scope>
  135. </dependency>
  136. </dependencies>
  137. </dependencyManagement>
  138. <build>
  139. <finalName>${project.artifactId}</finalName>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.springframework.boot</groupId>
  143. <artifactId>spring-boot-maven-plugin</artifactId>
  144. </plugin>
  145. <!--跳过测试代码的编译-->
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-surefire-plugin</artifactId>
  149. <configuration>
  150. <skip>true</skip>
  151. </configuration>
  152. </plugin>
  153. </plugins>
  154. <!--配置资源节点-->
  155. <resources>
  156. <resource>
  157. <directory>src/main/java</directory>
  158. <includes>
  159. <!--mapper.xml文件-->
  160. <include>**/*.xml</include>
  161. </includes>
  162. </resource>
  163. <resource>
  164. <directory>src/main/resources</directory>
  165. <filtering>true</filtering>
  166. <includes>
  167. <include>*.properties</include>
  168. <include>*.yml</include>
  169. <include>**/*.xml</include>
  170. </includes>
  171. </resource>
  172. </resources>
  173. </build>
  174. <!--使用Spring稳定版本-->
  175. <repositories>
  176. <repository>
  177. <id>spring-milestones</id>
  178. <name>Spring Milestones</name>
  179. <url>https://repo.spring.io/milestone</url>
  180. <!--不下载snapshots快照版-->
  181. <snapshots>
  182. <enabled>false</enabled>
  183. </snapshots>
  184. </repository>
  185. </repositories>
  186. </project>