pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. <dependency>
  151. <groupId>org.jetbrains</groupId>
  152. <artifactId>annotations</artifactId>
  153. <version>20.1.0</version>
  154. </dependency>
  155. </dependencies>
  156. <!-- 导入Spring Cloud的依赖管理 -->
  157. <dependencyManagement>
  158. <dependencies>
  159. <dependency>
  160. <groupId>org.springframework.cloud</groupId>
  161. <artifactId>spring-cloud-dependencies</artifactId>
  162. <version>${spring-cloud.version}</version>
  163. <type>pom</type>
  164. <scope>import</scope>
  165. </dependency>
  166. </dependencies>
  167. </dependencyManagement>
  168. <!--deploy-->
  169. <distributionManagement>
  170. <repository>
  171. <id>nexus</id>
  172. <!--名称自己定义-->
  173. <name>release</name>
  174. <url>http://10.10.1.25:8081/repository/host_repository/</url>
  175. </repository>
  176. <!--快照-->
  177. <!--<snapshotRepository>
  178. <id>nexus</id>
  179. <name>snapshots</name>
  180. <url>http://10.10.1.25:8081/repository/host_repository/</url>
  181. </snapshotRepository>-->
  182. </distributionManagement>
  183. <build>
  184. <!--定义编译,打包,部署的项目名称-->
  185. <finalName>${project.artifactId}</finalName>
  186. <plugins>
  187. <plugin>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-maven-plugin</artifactId>
  190. </plugin>
  191. <!--跳过测试代码的编译-->
  192. <plugin>
  193. <groupId>org.apache.maven.plugins</groupId>
  194. <artifactId>maven-surefire-plugin</artifactId>
  195. <configuration>
  196. <skip>true</skip>
  197. </configuration>
  198. </plugin>
  199. </plugins>
  200. <!--配置资源节点-->
  201. <resources>
  202. <resource>
  203. <directory>src/main/java</directory>
  204. <includes>
  205. <!--mapper.xml文件-->
  206. <include>**/*.xml</include>
  207. </includes>
  208. </resource>
  209. <resource>
  210. <directory>src/main/resources</directory>
  211. <filtering>true</filtering>
  212. <includes>
  213. <include>*.properties</include>
  214. <include>*.yml</include>
  215. <include>**/*.xml</include>
  216. </includes>
  217. </resource>
  218. </resources>
  219. </build>
  220. <!--使用Spring稳定版本-->
  221. <repositories>
  222. <repository>
  223. <id>spring-milestones</id>
  224. <name>Spring Milestones</name>
  225. <url>https://repo.spring.io/milestone</url>
  226. <!--不下载snapshots快照版-->
  227. <snapshots>
  228. <enabled>false</enabled>
  229. </snapshots>
  230. </repository>
  231. </repositories>
  232. </project>