pom.xml 8.7 KB

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