pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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-number-manage</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>depot-number-manage</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.0.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. <spring-cloud.version>Finchley.M8</spring-cloud.version>
  22. </properties>
  23. <dependencies>
  24. <!-- web模块 -->
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. </dependency>
  29. <!-- test模块 -->
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-test</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <!-- mysql -->
  36. <dependency>
  37. <groupId>mysql</groupId>
  38. <artifactId>mysql-connector-java</artifactId>
  39. </dependency>
  40. <!-- mybatis -->
  41. <dependency>
  42. <groupId>org.mybatis.spring.boot</groupId>
  43. <artifactId>mybatis-spring-boot-starter</artifactId>
  44. <version>1.3.1</version>
  45. </dependency>
  46. <!-- 导入eureka-server服务的依赖 -->
  47. <dependency>
  48. <groupId>org.springframework.cloud</groupId>
  49. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.cloud</groupId>
  53. <artifactId>spring-cloud-starter-config</artifactId>
  54. </dependency>
  55. <!-- swagger2 -->
  56. <dependency>
  57. <groupId>io.springfox</groupId>
  58. <artifactId>springfox-swagger2</artifactId>
  59. <version>2.6.1</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>io.springfox</groupId>
  63. <artifactId>springfox-swagger-ui</artifactId>
  64. <version>2.6.1</version>
  65. </dependency>
  66. <!-- 引入spring boot自带的pagehelper插件 -->
  67. <dependency>
  68. <groupId>com.github.pagehelper</groupId>
  69. <artifactId>pagehelper-spring-boot-starter</artifactId>
  70. <version>1.2.3</version>
  71. </dependency>
  72. <!-- commons工具类jar -->
  73. <dependency>
  74. <groupId>org.apache.commons</groupId>
  75. <artifactId>commons-lang3</artifactId>
  76. <version>3.7</version>
  77. </dependency>
  78. <!-- 阿里巴巴json -->
  79. <dependency>
  80. <groupId>com.alibaba</groupId>
  81. <artifactId>fastjson</artifactId>
  82. <version>1.2.37</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-data-redis</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework.session</groupId>
  90. <artifactId>spring-session-data-redis</artifactId>
  91. </dependency>
  92. <!-- 加载mybatis逆向生成工具包 -->
  93. <dependency>
  94. <groupId>org.mybatis.generator</groupId>
  95. <artifactId>mybatis-generator-core</artifactId>
  96. <!-- 注意版本.这里我使用的是1.3.2 -->
  97. <version>1.3.2</version>
  98. </dependency>
  99. <!-- 调用http接口需要 -->
  100. <dependency>
  101. <groupId>org.apache.httpcomponents</groupId>
  102. <artifactId>httpclient</artifactId>
  103. <version>4.5.6</version>
  104. </dependency>
  105. </dependencies>
  106. <!-- 导入Spring Cloud的依赖管理 -->
  107. <dependencyManagement>
  108. <dependencies>
  109. <dependency>
  110. <groupId>org.springframework.cloud</groupId>
  111. <artifactId>spring-cloud-dependencies</artifactId>
  112. <version>${spring-cloud.version}</version>
  113. <type>pom</type>
  114. <scope>import</scope>
  115. </dependency>
  116. </dependencies>
  117. </dependencyManagement>
  118. <build>
  119. <finalName>${project.artifactId}</finalName>
  120. <plugins>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-surefire-plugin</artifactId>
  128. <configuration>
  129. <skip>true</skip>
  130. </configuration>
  131. </plugin>
  132. </plugins>
  133. <!-- 配置资源节点 -->
  134. <resources>
  135. <resource>
  136. <directory>src/main/java</directory>
  137. <includes>
  138. <include>**/*.xml</include>
  139. </includes>
  140. </resource>
  141. <resource>
  142. <directory>src/main/resources</directory>
  143. </resource>
  144. </resources>
  145. </build>
  146. <repositories>
  147. <repository>
  148. <id>spring-milestones</id>
  149. <name>Spring Milestones</name>
  150. <url>https://repo.spring.io/milestone</url>
  151. <snapshots>
  152. <enabled>false</enabled>
  153. </snapshots>
  154. </repository>
  155. </repositories>
  156. </project>