pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.chinaitop</groupId>
  6. <artifactId>depot-safe-produce</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>depot-safe-produce</name>
  10. <description>Demo project for Spring Boot</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.0.4.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. </properties>
  22. <dependencies>
  23. <!-- web模块 -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.cloud</groupId>
  30. <artifactId>spring-cloud-starter-config</artifactId>
  31. </dependency>
  32. <!-- test模块 -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-test</artifactId>
  36. <scope>test</scope>
  37. </dependency>
  38. <!-- mysql -->
  39. <dependency>
  40. <groupId>mysql</groupId>
  41. <artifactId>mysql-connector-java</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. <!-- redis -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-data-redis</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.session</groupId>
  56. <artifactId>spring-session-data-redis</artifactId>
  57. </dependency>
  58. <!-- 导入eureka-server服务的依赖 -->
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.cloud</groupId>
  65. <artifactId>spring-cloud-starter-config</artifactId>
  66. </dependency>
  67. <!--<dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-starter-eureka-server</artifactId>
  70. </dependency>-->
  71. <!-- swagger2 -->
  72. <dependency>
  73. <groupId>io.springfox</groupId>
  74. <artifactId>springfox-swagger2</artifactId>
  75. <version>2.6.1</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.springfox</groupId>
  79. <artifactId>springfox-swagger-ui</artifactId>
  80. <version>2.6.1</version>
  81. </dependency>
  82. <!-- 引入spring boot自带的pagehelper插件 -->
  83. <dependency>
  84. <groupId>com.github.pagehelper</groupId>
  85. <artifactId>pagehelper-spring-boot-starter</artifactId>
  86. <version>1.2.3</version>
  87. </dependency>
  88. <!-- commons工具类jar -->
  89. <dependency>
  90. <groupId>org.apache.commons</groupId>
  91. <artifactId>commons-lang3</artifactId>
  92. <version>3.7</version>
  93. </dependency>
  94. <!--poi-->
  95. <dependency>
  96. <groupId>org.apache.poi</groupId>
  97. <artifactId>poi-ooxml</artifactId>
  98. <version>3.9</version>
  99. </dependency>
  100. <!-- 阿里巴巴json -->
  101. <dependency>
  102. <groupId>com.alibaba</groupId>
  103. <artifactId>fastjson</artifactId>
  104. <version>1.2.37</version>
  105. </dependency>
  106. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  107. <dependency>
  108. <groupId>org.apache.httpcomponents</groupId>
  109. <artifactId>httpclient</artifactId>
  110. <version>4.5.6</version>
  111. </dependency>
  112. </dependencies>
  113. <!-- 导入Spring Cloud的依赖管理 -->
  114. <dependencyManagement>
  115. <dependencies>
  116. <dependency>
  117. <groupId>org.springframework.cloud</groupId>
  118. <artifactId>spring-cloud-dependencies</artifactId>
  119. <version>Finchley.RELEASE</version>
  120. <type>pom</type>
  121. <scope>import</scope>
  122. </dependency>
  123. </dependencies>
  124. </dependencyManagement>
  125. <build>
  126. <finalName>${project.artifactId}</finalName>
  127. <plugins>
  128. <plugin>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-maven-plugin</artifactId>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-surefire-plugin</artifactId>
  135. <configuration>
  136. <skip>true</skip>
  137. </configuration>
  138. </plugin>
  139. </plugins>
  140. <!-- 配置资源节点 -->
  141. <resources>
  142. <resource>
  143. <directory>src/main/java</directory>
  144. <includes>
  145. <include>**/*.properties</include>
  146. <include>**/*.xml</include>
  147. </includes>
  148. </resource>
  149. <resource>
  150. <directory>src/main/resources</directory>
  151. </resource>
  152. </resources>
  153. </build>
  154. <repositories>
  155. <repository>
  156. <id>spring-milestones</id>
  157. <name>Spring Milestones</name>
  158. <url>https://repo.spring.io/milestone</url>
  159. <snapshots>
  160. <enabled>false</enabled>
  161. </snapshots>
  162. </repository>
  163. </repositories>
  164. </project>