pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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.3.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. </dependency>
  151. <dependency>
  152. <groupId>org.springframework.session</groupId>
  153. <artifactId>spring-session-data-redis</artifactId>
  154. </dependency>
  155. </dependencies>
  156. <dependencyManagement>
  157. <dependencies>
  158. <dependency>
  159. <groupId>org.springframework.cloud</groupId>
  160. <artifactId>spring-cloud-dependencies</artifactId>
  161. <version>${spring-cloud.version}</version>
  162. <type>pom</type>
  163. <scope>import</scope>
  164. </dependency>
  165. </dependencies>
  166. </dependencyManagement>
  167. <build>
  168. <finalName>${project.artifactId}</finalName>
  169. <!--<plugins>
  170. <plugin>
  171. <groupId>org.springframework.boot</groupId>
  172. <artifactId>spring-boot-maven-plugin</artifactId>
  173. <configuration>
  174. <includeSystemScope>true</includeSystemScope>
  175. </configuration>
  176. <executions>
  177. <execution>
  178. <goals>
  179. <goal>repackage</goal>
  180. </goals>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. </plugins>-->
  185. <plugins>
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-war-plugin</artifactId>
  189. <version>2.4</version>
  190. <configuration>
  191. <!--如果想在没有web.xml文件的情况下构建WAR,请设置为false。-->
  192. <failOnMissingWebXml>false</failOnMissingWebXml>
  193. <warName>depot-web</warName>
  194. </configuration>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-compiler-plugin</artifactId>
  199. <version>2.0.2</version>
  200. <configuration>
  201. <source>1.8</source>
  202. <target>1.8</target>
  203. <encoding>utf-8</encoding>
  204. </configuration>
  205. </plugin>
  206. </plugins>
  207. <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
  208. <resources>
  209. <resource>
  210. <directory>src/main/java</directory>
  211. <includes>
  212. <include>**/*.properties</include>
  213. <include>**/*.xml</include>
  214. </includes>
  215. <filtering>false</filtering>
  216. </resource>
  217. <resource>
  218. <directory>src/main/resources</directory>
  219. </resource>
  220. </resources>
  221. </build>
  222. <repositories>
  223. <repository>
  224. <id>spring-milestones</id>
  225. <name>Spring Milestones</name>
  226. <url>https://repo.spring.io/milestone</url>
  227. <snapshots>
  228. <enabled>false</enabled>
  229. </snapshots>
  230. </repository>
  231. </repositories>
  232. </project>