pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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-tianjin</artifactId>
  15. <version>0.0.1-SNAPSHOT</version>
  16. <name>depot-shared-tianjin</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. </properties>
  26. <dependencies>
  27. <!-- gbase依赖包 -->
  28. <dependency>
  29. <groupId>com.gbase8s</groupId>
  30. <artifactId>ifxjdbc</artifactId>
  31. <version>1.0</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.gbase</groupId>
  35. <artifactId>druid</artifactId>
  36. <version>1.0.28</version>
  37. </dependency>
  38. <!-- redis -->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-data-redis</artifactId>
  42. </dependency>
  43. <!-- mybatis -->
  44. <dependency>
  45. <groupId>org.mybatis.spring.boot</groupId>
  46. <artifactId>mybatis-spring-boot-starter</artifactId>
  47. <version>1.3.1</version>
  48. </dependency>
  49. <!-- swagger2 -->
  50. <dependency>
  51. <groupId>io.springfox</groupId>
  52. <artifactId>springfox-swagger2</artifactId>
  53. <version>2.6.1</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>io.springfox</groupId>
  57. <artifactId>springfox-swagger-ui</artifactId>
  58. <version>2.6.1</version>
  59. </dependency>
  60. <!-- 引入spring boot自带的pagehelper插件 -->
  61. <dependency>
  62. <groupId>com.github.pagehelper</groupId>
  63. <artifactId>pagehelper-spring-boot-starter</artifactId>
  64. <version>1.2.3</version>
  65. </dependency>
  66. <!-- commons工具类jar -->
  67. <dependency>
  68. <groupId>org.apache.commons</groupId>
  69. <artifactId>commons-lang3</artifactId>
  70. <version>3.9</version>
  71. </dependency>
  72. <!-- 阿里巴巴json -->
  73. <dependency>
  74. <groupId>com.alibaba</groupId>
  75. <artifactId>fastjson</artifactId>
  76. <version>1.2.37</version>
  77. </dependency>
  78. <!--poi-->
  79. <dependency>
  80. <groupId>org.apache.poi</groupId>
  81. <artifactId>poi-ooxml</artifactId>
  82. <version>3.9</version>
  83. </dependency>
  84. <!-- 日志-->
  85. <dependency>
  86. <groupId>ch.qos.logback</groupId>
  87. <artifactId>logback-classic</artifactId>
  88. </dependency>
  89. <!-- springCloud dependency -->
  90. <dependency>
  91. <groupId>org.springframework.cloud</groupId>
  92. <artifactId>spring-cloud-starter-config</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-web</artifactId>
  97. </dependency>
  98. <!-- 导入eureka-client服务的依赖 -->
  99. <dependency>
  100. <groupId>org.springframework.cloud</groupId>
  101. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  102. </dependency>
  103. <!-- springBoot test dependency -->
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-test</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <!-- feign -->
  110. <dependency>
  111. <groupId>org.springframework.cloud</groupId>
  112. <artifactId>spring-cloud-starter-openfeign</artifactId>
  113. </dependency>
  114. <!-- hystrix 熔断-->
  115. <dependency>
  116. <groupId>org.springframework.cloud</groupId>
  117. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  118. </dependency>
  119. <!-- lombok -->
  120. <dependency>
  121. <groupId>org.projectlombok</groupId>
  122. <artifactId>lombok</artifactId>
  123. <version>1.18.22</version>
  124. <scope>provided</scope>
  125. </dependency>
  126. </dependencies>
  127. <!-- 导入Spring Cloud的依赖管理 -->
  128. <dependencyManagement>
  129. <dependencies>
  130. <dependency>
  131. <groupId>org.springframework.cloud</groupId>
  132. <artifactId>spring-cloud-dependencies</artifactId>
  133. <version>${spring-cloud.version}</version>
  134. <type>pom</type>
  135. <scope>import</scope>
  136. </dependency>
  137. </dependencies>
  138. </dependencyManagement>
  139. <build>
  140. <!--定义编译,打包,部署的项目名称-->
  141. <finalName>depot-shared</finalName>
  142. <plugins>
  143. <plugin>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-maven-plugin</artifactId>
  146. </plugin>
  147. <!--跳过测试代码的编译-->
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-surefire-plugin</artifactId>
  151. <configuration>
  152. <skip>true</skip>
  153. </configuration>
  154. </plugin>
  155. </plugins>
  156. <!--配置资源节点-->
  157. <resources>
  158. <resource>
  159. <directory>src/main/java</directory>
  160. <includes>
  161. <!--mapper.xml文件-->
  162. <include>**/*.xml</include>
  163. </includes>
  164. </resource>
  165. <resource>
  166. <directory>src/main/resources</directory>
  167. <filtering>true</filtering>
  168. <includes>
  169. <include>*.properties</include>
  170. <include>*.yml</include>
  171. <include>**/*.xml</include>
  172. </includes>
  173. </resource>
  174. </resources>
  175. </build>
  176. <!--使用Spring稳定版本-->
  177. <repositories>
  178. <repository>
  179. <id>spring-milestones</id>
  180. <name>Spring Milestones</name>
  181. <url>https://repo.spring.io/milestone</url>
  182. <!--不下载snapshots快照版-->
  183. <snapshots>
  184. <enabled>false</enabled>
  185. </snapshots>
  186. </repository>
  187. </repositories>
  188. </project>