pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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>jar</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. <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. <!-- 引入spring boot自带的pagehelper插件 -->
  29. <dependency>
  30. <groupId>com.github.pagehelper</groupId>
  31. <artifactId>pagehelper-spring-boot-starter</artifactId>
  32. <version>1.2.3</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-starter-config</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.mybatis.spring.boot</groupId>
  40. <artifactId>mybatis-spring-boot-starter</artifactId>
  41. <version>1.3.1</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.cloud</groupId>
  45. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.cloud</groupId>
  49. <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.retry</groupId>
  53. <artifactId>spring-retry</artifactId>
  54. </dependency>
  55. <!--<dependency>-->
  56. <!--<groupId>org.springframework.boot</groupId>-->
  57. <!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
  58. <!--<scope>provided</scope>-->
  59. <!--</dependency>-->
  60. <dependency>
  61. <groupId>mysql</groupId>
  62. <artifactId>mysql-connector-java</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-test</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-data-redis</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.session</groupId>
  75. <artifactId>spring-session-data-redis</artifactId>
  76. </dependency>
  77. </dependencies>
  78. <dependencyManagement>
  79. <dependencies>
  80. <dependency>
  81. <groupId>org.springframework.cloud</groupId>
  82. <artifactId>spring-cloud-dependencies</artifactId>
  83. <version>${spring-cloud.version}</version>
  84. <type>pom</type>
  85. <scope>import</scope>
  86. </dependency>
  87. </dependencies>
  88. </dependencyManagement>
  89. <build>
  90. <finalName>${project.artifactId}</finalName>
  91. <plugins>
  92. <plugin>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-maven-plugin</artifactId>
  95. </plugin>
  96. </plugins>
  97. <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
  98. <resources>
  99. <resource>
  100. <directory>src/main/java</directory>
  101. <includes>
  102. <include>**/*.properties</include>
  103. <include>**/*.xml</include>
  104. </includes>
  105. <filtering>false</filtering>
  106. </resource>
  107. <resource>
  108. <directory>src/main/resources</directory>
  109. </resource>
  110. </resources>
  111. </build>
  112. <repositories>
  113. <repository>
  114. <id>spring-milestones</id>
  115. <name>Spring Milestones</name>
  116. <url>https://repo.spring.io/milestone</url>
  117. <snapshots>
  118. <enabled>false</enabled>
  119. </snapshots>
  120. </repository>
  121. </repositories>
  122. </project>