pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. <!-- 安全验证 -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-security</artifactId>
  58. </dependency>
  59. <!-- gbase依赖包 -->
  60. <dependency>
  61. <groupId>com.gbase8s</groupId>
  62. <artifactId>ifxjdbc</artifactId>
  63. <version>1.0</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.gbase</groupId>
  67. <artifactId>druid</artifactId>
  68. <version>1.0.28</version>
  69. </dependency>
  70. <!-- mybatis -->
  71. <dependency>
  72. <groupId>org.mybatis.spring.boot</groupId>
  73. <artifactId>mybatis-spring-boot-starter</artifactId>
  74. <version>1.3.1</version>
  75. </dependency>
  76. <!-- redis -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-data-redis</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.session</groupId>
  83. <artifactId>spring-session-data-redis</artifactId>
  84. </dependency>
  85. <!-- swagger2 -->
  86. <dependency>
  87. <groupId>io.springfox</groupId>
  88. <artifactId>springfox-swagger2</artifactId>
  89. <version>2.6.1</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>io.springfox</groupId>
  93. <artifactId>springfox-swagger-ui</artifactId>
  94. <version>2.6.1</version>
  95. </dependency>
  96. <!-- 引入spring boot自带的pagehelper插件 -->
  97. <dependency>
  98. <groupId>com.github.pagehelper</groupId>
  99. <artifactId>pagehelper-spring-boot-starter</artifactId>
  100. <version>1.2.3</version>
  101. </dependency>
  102. <!-- commons工具类jar -->
  103. <dependency>
  104. <groupId>org.apache.commons</groupId>
  105. <artifactId>commons-lang3</artifactId>
  106. <version>3.7</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.httpcomponents</groupId>
  110. <artifactId>httpclient</artifactId>
  111. <version>4.5.6</version>
  112. </dependency>
  113. <!-- 阿里巴巴json -->
  114. <dependency>
  115. <groupId>com.alibaba</groupId>
  116. <artifactId>fastjson</artifactId>
  117. <version>1.2.37</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>net.sf.json-lib</groupId>
  121. <artifactId>json-lib</artifactId>
  122. <version>2.4</version>
  123. <classifier>jdk15</classifier>
  124. </dependency>
  125. <!--poi-->
  126. <dependency>
  127. <groupId>org.apache.poi</groupId>
  128. <artifactId>poi-ooxml</artifactId>
  129. <version>3.9</version>
  130. </dependency>
  131. <!-- 加载mybatis逆向生成工具包 -->
  132. <dependency>
  133. <groupId>org.mybatis.generator</groupId>
  134. <artifactId>mybatis-generator-core</artifactId>
  135. <!-- 注意版本.这里我使用的是1.3.2 -->
  136. <version>1.3.2</version>
  137. </dependency>
  138. <!-- feign -->
  139. <dependency>
  140. <groupId>org.springframework.cloud</groupId>
  141. <artifactId>spring-cloud-starter-openfeign</artifactId>
  142. </dependency>
  143. <!-- hystrix 熔断-->
  144. <dependency>
  145. <groupId>org.springframework.cloud</groupId>
  146. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  147. </dependency>
  148. <!-- lombok-->
  149. <dependency>
  150. <groupId>org.projectlombok</groupId>
  151. <artifactId>lombok</artifactId>
  152. <version>1.18.22</version>
  153. <scope>provided</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.jetbrains</groupId>
  157. <artifactId>annotations</artifactId>
  158. <version>20.1.0</version>
  159. </dependency>
  160. <!-- OKHTTP集成 -->
  161. <dependency>
  162. <groupId>com.squareup.okhttp3</groupId>
  163. <artifactId>okhttp</artifactId>
  164. <version>3.14.9</version>
  165. </dependency>
  166. </dependencies>
  167. <!-- 导入Spring Cloud的依赖管理 -->
  168. <dependencyManagement>
  169. <dependencies>
  170. <dependency>
  171. <groupId>org.springframework.cloud</groupId>
  172. <artifactId>spring-cloud-dependencies</artifactId>
  173. <version>${spring-cloud.version}</version>
  174. <type>pom</type>
  175. <scope>import</scope>
  176. </dependency>
  177. </dependencies>
  178. </dependencyManagement>
  179. <!--deploy-->
  180. <distributionManagement>
  181. <repository>
  182. <id>nexus</id>
  183. <!--名称自己定义-->
  184. <name>release</name>
  185. <url>http://10.10.1.25:8081/repository/host_repository/</url>
  186. </repository>
  187. <!--快照-->
  188. <!--<snapshotRepository>
  189. <id>nexus</id>
  190. <name>snapshots</name>
  191. <url>http://10.10.1.25:8081/repository/host_repository/</url>
  192. </snapshotRepository>-->
  193. </distributionManagement>
  194. <build>
  195. <!--定义编译,打包,部署的项目名称-->
  196. <finalName>${project.artifactId}</finalName>
  197. <plugins>
  198. <plugin>
  199. <groupId>org.springframework.boot</groupId>
  200. <artifactId>spring-boot-maven-plugin</artifactId>
  201. </plugin>
  202. <!--跳过测试代码的编译-->
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-surefire-plugin</artifactId>
  206. <configuration>
  207. <skip>true</skip>
  208. </configuration>
  209. </plugin>
  210. </plugins>
  211. <!--配置资源节点-->
  212. <resources>
  213. <resource>
  214. <directory>src/main/java</directory>
  215. <includes>
  216. <!--mapper.xml文件-->
  217. <include>**/*.xml</include>
  218. </includes>
  219. </resource>
  220. <resource>
  221. <directory>src/main/resources</directory>
  222. <filtering>true</filtering>
  223. <includes>
  224. <include>*.properties</include>
  225. <include>*.yml</include>
  226. <include>**/*.xml</include>
  227. </includes>
  228. </resource>
  229. </resources>
  230. </build>
  231. <!--使用Spring稳定版本-->
  232. <repositories>
  233. <repository>
  234. <id>spring-milestones</id>
  235. <name>Spring Milestones</name>
  236. <url>https://repo.spring.io/milestone</url>
  237. <!--不下载snapshots快照版-->
  238. <snapshots>
  239. <enabled>false</enabled>
  240. </snapshots>
  241. </repository>
  242. </repositories>
  243. </project>