pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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-grain-inspection</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>depot-grain-inspection</name>
  10. <description>depot-graininspection project for Spring Boot</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.0.2.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. <dependency>
  48. <groupId>org.apache.commons</groupId>
  49. <artifactId>commons-lang3</artifactId>
  50. <version>3.7</version>
  51. </dependency>
  52. <!-- swagger2 -->
  53. <dependency>
  54. <groupId>io.springfox</groupId>
  55. <artifactId>springfox-swagger2</artifactId>
  56. <version>2.6.1</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.springfox</groupId>
  60. <artifactId>springfox-swagger-ui</artifactId>
  61. <version>2.6.1</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>mysql</groupId>
  65. <artifactId>mysql-connector-java</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-test</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. <!-- redis -->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-data-redis</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.session</groupId>
  79. <artifactId>spring-session-data-redis</artifactId>
  80. </dependency>
  81. <!-- 阿里巴巴json -->
  82. <dependency>
  83. <groupId>com.alibaba</groupId>
  84. <artifactId>fastjson</artifactId>
  85. <version>1.2.37</version>
  86. </dependency>
  87. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  88. <dependency>
  89. <groupId>org.apache.httpcomponents</groupId>
  90. <artifactId>httpclient</artifactId>
  91. <version>4.5.6</version>
  92. </dependency>
  93. </dependencies>
  94. <dependencyManagement>
  95. <dependencies>
  96. <dependency>
  97. <groupId>org.springframework.cloud</groupId>
  98. <artifactId>spring-cloud-dependencies</artifactId>
  99. <version>${spring-cloud.version}</version>
  100. <type>pom</type>
  101. <scope>import</scope>
  102. </dependency>
  103. </dependencies>
  104. </dependencyManagement>
  105. <build>
  106. <finalName>${project.artifactId}</finalName>
  107. <plugins>
  108. <plugin>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-maven-plugin</artifactId>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-surefire-plugin</artifactId>
  115. <configuration>
  116. <skip>true</skip>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. <!--解决Intellij构建项目时,target/classes目录下不存在mapper.xml文件-->
  121. <resources>
  122. <resource>
  123. <directory>src/main/java</directory>
  124. <includes>
  125. <include>**/*.properties</include>
  126. <include>**/*.xml</include>
  127. <include>**/*.store</include>
  128. </includes>
  129. <filtering>false</filtering>
  130. </resource>
  131. <resource>
  132. <directory>src/main/resources</directory>
  133. </resource>
  134. </resources>
  135. </build>
  136. <repositories>
  137. <repository>
  138. <id>spring-milestones</id>
  139. <name>Spring Milestones</name>
  140. <url>https://repo.spring.io/milestone</url>
  141. <snapshots>
  142. <enabled>false</enabled>
  143. </snapshots>
  144. </repository>
  145. </repositories>
  146. </project>