pom.xml 5.7 KB

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