pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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-web</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>depot-web</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. <maven.compiler.source>1.8</maven.compiler.source>
  22. <maven.compiler.target>1.8</maven.compiler.target>
  23. <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
  24. </properties>
  25. <dependencies>
  26. <!--引入springboot项目-->
  27. <dependency>
  28. <groupId>com.chinaitop</groupId>
  29. <artifactId>depot-system</artifactId>
  30. <version>0.0.1-SNAPSHOT</version>
  31. <!--<scope>system</scope>
  32. <systemPath>${project.basedir}/src/main/resources/lib/depot-basic-0.0.1-SNAPSHOT-exec.jar</systemPath>-->
  33. </dependency>
  34. <dependency>
  35. <groupId>com.chinaitop</groupId>
  36. <artifactId>depot-basic</artifactId>
  37. <version>0.0.1-SNAPSHOT</version>
  38. <!--<scope>system</scope>
  39. <systemPath>${project.basedir}/src/main/resources/lib/depot-system-0.0.1-SNAPSHOT-exec.jar</systemPath>-->
  40. </dependency>
  41. <!-- swagger2 -->
  42. <dependency>
  43. <groupId>io.springfox</groupId>
  44. <artifactId>springfox-swagger2</artifactId>
  45. <version>2.6.1</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>io.springfox</groupId>
  49. <artifactId>springfox-swagger-ui</artifactId>
  50. <version>2.6.1</version>
  51. </dependency>
  52. <!-- 引入spring boot自带的pagehelper插件 -->
  53. <dependency>
  54. <groupId>com.github.pagehelper</groupId>
  55. <artifactId>pagehelper-spring-boot-starter</artifactId>
  56. <version>1.2.3</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.commons</groupId>
  60. <artifactId>commons-lang3</artifactId>
  61. </dependency>
  62. <!-- https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.codec -->
  63. <dependency>
  64. <groupId>org.apache.directory.studio</groupId>
  65. <artifactId>org.apache.commons.codec</artifactId>
  66. <version>1.8</version>
  67. </dependency>
  68. <!--apache/poi-->
  69. <dependency>
  70. <groupId>org.apache.poi</groupId>
  71. <artifactId>poi-ooxml</artifactId>
  72. <version>3.9</version>
  73. </dependency>
  74. <!-- 阿里巴巴json -->
  75. <dependency>
  76. <groupId>com.alibaba</groupId>
  77. <artifactId>fastjson</artifactId>
  78. <version>1.2.37</version>
  79. </dependency>
  80. <!-- 定时需要的jar包 -->
  81. <dependency>
  82. <groupId>org.quartz-scheduler</groupId>
  83. <artifactId>quartz</artifactId>
  84. <version>2.2.1</version>
  85. <exclusions>
  86. <exclusion>
  87. <artifactId>slf4j-api</artifactId>
  88. <groupId>org.slf4j</groupId>
  89. </exclusion>
  90. </exclusions>
  91. </dependency>
  92. <dependency><!-- 该依赖必加,里面有sping对schedule的支持 -->
  93. <groupId>org.springframework</groupId>
  94. <artifactId>spring-context-support</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.google.code.gson</groupId>
  98. <artifactId>gson</artifactId>
  99. <version>2.8.2</version>
  100. </dependency>
  101. <!-- 加载mybatis逆向生成工具包 -->
  102. <dependency>
  103. <groupId>org.mybatis.generator</groupId>
  104. <artifactId>mybatis-generator-core</artifactId>
  105. <!-- 注意版本.这里我使用的是1.3.2 -->
  106. <version>1.3.2</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-web</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.springframework.cloud</groupId>
  114. <artifactId>spring-cloud-starter-config</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.mybatis.spring.boot</groupId>
  118. <artifactId>mybatis-spring-boot-starter</artifactId>
  119. <version>1.3.1</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.springframework.cloud</groupId>
  123. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework.cloud</groupId>
  127. <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.springframework.retry</groupId>
  131. <artifactId>spring-retry</artifactId>
  132. </dependency>
  133. <!--<dependency>-->
  134. <!--<groupId>org.springframework.boot</groupId>-->
  135. <!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
  136. <!--<scope>provided</scope>-->
  137. <!--</dependency>-->
  138. <dependency>
  139. <groupId>mysql</groupId>
  140. <artifactId>mysql-connector-java</artifactId>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-starter-test</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-starter-data-redis</artifactId>
  150. <exclusions>
  151. <exclusion>
  152. <groupId>redis.clients</groupId>
  153. <artifactId>jedis</artifactId>
  154. </exclusion>
  155. <exclusion>
  156. <artifactId>lettuce-core</artifactId>
  157. <groupId>io.lettuce</groupId>
  158. </exclusion>
  159. </exclusions>
  160. </dependency>
  161. <dependency>
  162. <groupId>redis.clients</groupId>
  163. <artifactId>jedis</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.commons</groupId>
  167. <artifactId>commons-pool2</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework.session</groupId>
  171. <artifactId>spring-session-data-redis</artifactId>
  172. </dependency>
  173. </dependencies>
  174. <dependencyManagement>
  175. <dependencies>
  176. <dependency>
  177. <groupId>org.springframework.cloud</groupId>
  178. <artifactId>spring-cloud-dependencies</artifactId>
  179. <version>${spring-cloud.version}</version>
  180. <type>pom</type>
  181. <scope>import</scope>
  182. </dependency>
  183. </dependencies>
  184. </dependencyManagement>
  185. <build>
  186. <finalName>${project.artifactId}</finalName>
  187. <!--<plugins>
  188. <plugin>
  189. <groupId>org.springframework.boot</groupId>
  190. <artifactId>spring-boot-maven-plugin</artifactId>
  191. <configuration>
  192. <includeSystemScope>true</includeSystemScope>
  193. </configuration>
  194. <executions>
  195. <execution>
  196. <goals>
  197. <goal>repackage</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>-->
  203. <plugins>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-war-plugin</artifactId>
  207. <version>2.4</version>
  208. <configuration>
  209. <!--如果想在没有web.xml文件的情况下构建WAR,请设置为false。-->
  210. <failOnMissingWebXml>false</failOnMissingWebXml>
  211. <warName>depot-web</warName>
  212. </configuration>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-compiler-plugin</artifactId>
  217. <version>2.0.2</version>
  218. <configuration>
  219. <source>1.8</source>
  220. <target>1.8</target>
  221. <encoding>utf-8</encoding>
  222. </configuration>
  223. </plugin>
  224. </plugins>
  225. <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
  226. <resources>
  227. <resource>
  228. <directory>src/main/java</directory>
  229. <includes>
  230. <include>**/*.properties</include>
  231. <include>**/*.xml</include>
  232. </includes>
  233. <filtering>false</filtering>
  234. </resource>
  235. <resource>
  236. <directory>src/main/resources</directory>
  237. </resource>
  238. </resources>
  239. </build>
  240. <repositories>
  241. <repository>
  242. <id>spring-milestones</id>
  243. <name>Spring Milestones</name>
  244. <url>https://repo.spring.io/milestone</url>
  245. <snapshots>
  246. <enabled>false</enabled>
  247. </snapshots>
  248. </repository>
  249. </repositories>
  250. </project>