pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-security</artifactId>
  69. </dependency>
  70. <!-- commons工具类jar -->
  71. <dependency>
  72. <groupId>org.apache.commons</groupId>
  73. <artifactId>commons-lang3</artifactId>
  74. <version>3.9</version>
  75. </dependency>
  76. <!-- 阿里巴巴json -->
  77. <dependency>
  78. <groupId>com.alibaba</groupId>
  79. <artifactId>fastjson</artifactId>
  80. <version>1.2.37</version>
  81. </dependency>
  82. <!--poi-->
  83. <dependency>
  84. <groupId>org.apache.poi</groupId>
  85. <artifactId>poi-ooxml</artifactId>
  86. <version>3.9</version>
  87. </dependency>
  88. <!-- 日志-->
  89. <dependency>
  90. <groupId>ch.qos.logback</groupId>
  91. <artifactId>logback-classic</artifactId>
  92. </dependency>
  93. <!-- springCloud dependency -->
  94. <dependency>
  95. <groupId>org.springframework.cloud</groupId>
  96. <artifactId>spring-cloud-starter-config</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-web</artifactId>
  101. </dependency>
  102. <!-- 导入eureka-client服务的依赖 -->
  103. <dependency>
  104. <groupId>org.springframework.cloud</groupId>
  105. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  106. </dependency>
  107. <!-- springBoot test dependency -->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-test</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <!-- feign -->
  114. <dependency>
  115. <groupId>org.springframework.cloud</groupId>
  116. <artifactId>spring-cloud-starter-openfeign</artifactId>
  117. </dependency>
  118. <!-- hystrix 熔断-->
  119. <dependency>
  120. <groupId>org.springframework.cloud</groupId>
  121. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  122. </dependency>
  123. <!-- lombok -->
  124. <dependency>
  125. <groupId>org.projectlombok</groupId>
  126. <artifactId>lombok</artifactId>
  127. <version>1.18.22</version>
  128. <scope>provided</scope>
  129. </dependency>
  130. </dependencies>
  131. <!-- 导入Spring Cloud的依赖管理 -->
  132. <dependencyManagement>
  133. <dependencies>
  134. <dependency>
  135. <groupId>org.springframework.cloud</groupId>
  136. <artifactId>spring-cloud-dependencies</artifactId>
  137. <version>${spring-cloud.version}</version>
  138. <type>pom</type>
  139. <scope>import</scope>
  140. </dependency>
  141. </dependencies>
  142. </dependencyManagement>
  143. <build>
  144. <!--定义编译,打包,部署的项目名称-->
  145. <finalName>depot-shared</finalName>
  146. <plugins>
  147. <plugin>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-maven-plugin</artifactId>
  150. </plugin>
  151. <!--跳过测试代码的编译-->
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-surefire-plugin</artifactId>
  155. <configuration>
  156. <skip>true</skip>
  157. </configuration>
  158. </plugin>
  159. </plugins>
  160. <!--配置资源节点-->
  161. <resources>
  162. <resource>
  163. <directory>src/main/java</directory>
  164. <includes>
  165. <!--mapper.xml文件-->
  166. <include>**/*.xml</include>
  167. </includes>
  168. </resource>
  169. <resource>
  170. <directory>src/main/resources</directory>
  171. <filtering>true</filtering>
  172. <includes>
  173. <include>*.properties</include>
  174. <include>*.yml</include>
  175. <include>**/*.xml</include>
  176. </includes>
  177. </resource>
  178. </resources>
  179. </build>
  180. <!--使用Spring稳定版本-->
  181. <repositories>
  182. <repository>
  183. <id>spring-milestones</id>
  184. <name>Spring Milestones</name>
  185. <url>https://repo.spring.io/milestone</url>
  186. <!--不下载snapshots快照版-->
  187. <snapshots>
  188. <enabled>false</enabled>
  189. </snapshots>
  190. </repository>
  191. </repositories>
  192. </project>