pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. <!--model-->
  6. <groupId>com.chinaitop</groupId>
  7. <artifactId>depot-storage</artifactId>
  8. <!--<version>1.0.1</version>--><!--上传正式版(GBase:1开头)-->
  9. <version>0.0.1-SNAPSHOT</version>
  10. <name>depot-storage</name>
  11. <packaging>jar</packaging>
  12. <!--model description-->
  13. <description>
  14. The warehousing business includes drug management, safety production and safety inspection project for
  15. Spring Boot
  16. </description>
  17. <!--springBoot parent version -->
  18. <parent>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-parent</artifactId>
  21. <version>2.0.4.RELEASE</version>
  22. <relativePath/> <!-- lookup parent from repository -->
  23. </parent>
  24. <!--tools version management-->
  25. <properties>
  26. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  27. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  28. <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
  29. <java.version>1.8</java.version>
  30. </properties>
  31. <!--dependency management-->
  32. <dependencies>
  33. <!-- springBoot web dependency -->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <!-- springBoot test dependency -->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-test</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. <!-- springCloud dependency -->
  45. <dependency>
  46. <groupId>org.springframework.cloud</groupId>
  47. <artifactId>spring-cloud-starter-config</artifactId>
  48. </dependency>
  49. <!-- 导入eureka-client服务的依赖 -->
  50. <dependency>
  51. <groupId>org.springframework.cloud</groupId>
  52. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  53. </dependency>
  54. <!-- gbase依赖包 -->
  55. <dependency>
  56. <groupId>com.gbase8s</groupId>
  57. <artifactId>ifxjdbc</artifactId>
  58. <version>1.0</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.gbase</groupId>
  62. <artifactId>druid</artifactId>
  63. <version>1.0.28</version>
  64. </dependency>
  65. <!-- mybatis -->
  66. <dependency>
  67. <groupId>org.mybatis.spring.boot</groupId>
  68. <artifactId>mybatis-spring-boot-starter</artifactId>
  69. <version>1.3.1</version>
  70. </dependency>
  71. <!-- redis -->
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-data-redis</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.session</groupId>
  78. <artifactId>spring-session-data-redis</artifactId>
  79. </dependency>
  80. <!-- swagger2 -->
  81. <dependency>
  82. <groupId>io.springfox</groupId>
  83. <artifactId>springfox-swagger2</artifactId>
  84. <version>2.6.1</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>io.springfox</groupId>
  88. <artifactId>springfox-swagger-ui</artifactId>
  89. <version>2.6.1</version>
  90. </dependency>
  91. <!-- 引入spring boot自带的pagehelper插件 -->
  92. <dependency>
  93. <groupId>com.github.pagehelper</groupId>
  94. <artifactId>pagehelper-spring-boot-starter</artifactId>
  95. <version>1.2.3</version>
  96. </dependency>
  97. <!-- commons工具类jar -->
  98. <dependency>
  99. <groupId>org.apache.commons</groupId>
  100. <artifactId>commons-lang3</artifactId>
  101. <version>3.7</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.httpcomponents</groupId>
  105. <artifactId>httpclient</artifactId>
  106. <version>4.5.6</version>
  107. </dependency>
  108. <!-- 阿里巴巴json -->
  109. <dependency>
  110. <groupId>com.alibaba</groupId>
  111. <artifactId>fastjson</artifactId>
  112. <version>1.2.37</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>net.sf.json-lib</groupId>
  116. <artifactId>json-lib</artifactId>
  117. <version>2.4</version>
  118. <classifier>jdk15</classifier>
  119. </dependency>
  120. <!--poi-->
  121. <dependency>
  122. <groupId>org.apache.poi</groupId>
  123. <artifactId>poi-ooxml</artifactId>
  124. <version>3.9</version>
  125. </dependency>
  126. <!-- 加载mybatis逆向生成工具包 -->
  127. <dependency>
  128. <groupId>org.mybatis.generator</groupId>
  129. <artifactId>mybatis-generator-core</artifactId>
  130. <!-- 注意版本.这里我使用的是1.3.2 -->
  131. <version>1.3.2</version>
  132. </dependency>
  133. <!-- feign -->
  134. <dependency>
  135. <groupId>org.springframework.cloud</groupId>
  136. <artifactId>spring-cloud-starter-openfeign</artifactId>
  137. </dependency>
  138. <!-- hystrix 熔断-->
  139. <dependency>
  140. <groupId>org.springframework.cloud</groupId>
  141. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  142. </dependency>
  143. <!-- lombok-->
  144. <dependency>
  145. <groupId>org.projectlombok</groupId>
  146. <artifactId>lombok</artifactId>
  147. <version>1.18.22</version>
  148. <scope>provided</scope>
  149. </dependency>
  150. </dependencies>
  151. <!-- 导入Spring Cloud的依赖管理 -->
  152. <dependencyManagement>
  153. <dependencies>
  154. <dependency>
  155. <groupId>org.springframework.cloud</groupId>
  156. <artifactId>spring-cloud-dependencies</artifactId>
  157. <version>${spring-cloud.version}</version>
  158. <type>pom</type>
  159. <scope>import</scope>
  160. </dependency>
  161. </dependencies>
  162. </dependencyManagement>
  163. <!--deploy-->
  164. <distributionManagement>
  165. <repository>
  166. <id>nexus</id>
  167. <!--名称自己定义-->
  168. <name>release</name>
  169. <url>http://10.10.1.25:8081/repository/host_repository/</url>
  170. </repository>
  171. <!--快照-->
  172. <!--<snapshotRepository>
  173. <id>nexus</id>
  174. <name>snapshots</name>
  175. <url>http://10.10.1.25:8081/repository/host_repository/</url>
  176. </snapshotRepository>-->
  177. </distributionManagement>
  178. <build>
  179. <!--定义编译,打包,部署的项目名称-->
  180. <finalName>${project.artifactId}</finalName>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.springframework.boot</groupId>
  184. <artifactId>spring-boot-maven-plugin</artifactId>
  185. </plugin>
  186. <!--跳过测试代码的编译-->
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-surefire-plugin</artifactId>
  190. <configuration>
  191. <skip>true</skip>
  192. </configuration>
  193. </plugin>
  194. </plugins>
  195. <!--配置资源节点-->
  196. <resources>
  197. <resource>
  198. <directory>src/main/java</directory>
  199. <includes>
  200. <!--mapper.xml文件-->
  201. <include>**/*.xml</include>
  202. </includes>
  203. </resource>
  204. <resource>
  205. <directory>src/main/resources</directory>
  206. <filtering>true</filtering>
  207. <includes>
  208. <include>*.properties</include>
  209. <include>*.yml</include>
  210. <include>**/*.xml</include>
  211. </includes>
  212. </resource>
  213. </resources>
  214. </build>
  215. <!--使用Spring稳定版本-->
  216. <repositories>
  217. <repository>
  218. <id>spring-milestones</id>
  219. <name>Spring Milestones</name>
  220. <url>https://repo.spring.io/milestone</url>
  221. <!--不下载snapshots快照版-->
  222. <snapshots>
  223. <enabled>false</enabled>
  224. </snapshots>
  225. </repository>
  226. </repositories>
  227. </project>