pom.xml 4.9 KB

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