pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.1</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.huimv</groupId>
  12. <artifactId>admin</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>admin</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-devtools</artifactId>
  27. <scope>runtime</scope>
  28. <optional>false</optional>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-test</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>junit</groupId>
  41. <artifactId>junit</artifactId>
  42. <version>4.12</version>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>log4j</groupId>
  47. <artifactId>log4j</artifactId>
  48. <version>1.2.17</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>log4j</groupId>
  52. <artifactId>apache-log4j-extras</artifactId>
  53. <version>1.1</version>
  54. <scope>compile</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.junit.jupiter</groupId>
  58. <artifactId>junit-jupiter-api</artifactId>
  59. <version>RELEASE</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.cloud</groupId>
  63. <artifactId>spring-cloud-commons</artifactId>
  64. <version>2.1.6.RELEASE</version>
  65. <scope>compile</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-openfeign-core</artifactId>
  70. <version>2.1.5.RELEASE</version>
  71. <scope>compile</scope>
  72. </dependency>
  73. <!--
  74. <dependency>
  75. <groupId>org.springframework.cloud</groupId>
  76. <artifactId>spring-cloud-context</artifactId>
  77. <version>2.1.0.RELEASE</version>
  78. </dependency>
  79. -->
  80. <!--spring boot2.x下 使用feign-->
  81. <!--
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-starter-openfeign</artifactId>
  85. </dependency>
  86. -->
  87. <dependency>
  88. <groupId>mysql</groupId>
  89. <artifactId>mysql-connector-java</artifactId>
  90. <scope>runtime</scope>
  91. </dependency>
  92. <!--
  93. <dependency>
  94. <groupId>org.springframework.data</groupId>
  95. <artifactId>spring-data-jpa</artifactId>
  96. </dependency>
  97. -->
  98. <dependency>
  99. <groupId>org.projectlombok</groupId>
  100. <artifactId>lombok</artifactId>
  101. <optional>true</optional>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-data-jpa</artifactId>
  106. </dependency>
  107. <!--redis依赖-->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-data-redis</artifactId>
  111. </dependency>
  112. <!-- spring session 与redis应用基本环境配置,需要开启redis后才可以使用,不然启动Spring boot会报错 -->
  113. <dependency>
  114. <groupId>org.springframework.session</groupId>
  115. <artifactId>spring-session-data-redis</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.alibaba</groupId>
  119. <artifactId>fastjson</artifactId>
  120. <version>1.2.62</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.mybatis</groupId>
  124. <artifactId>mybatis-spring</artifactId>
  125. <version>2.0.6</version>
  126. <scope>compile</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.mybatis</groupId>
  130. <artifactId>mybatis</artifactId>
  131. <version>3.5.6</version>
  132. <scope>compile</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.huimv</groupId>
  136. <artifactId>huimv-cloud-common</artifactId>
  137. <version>0.0.1-SNAPSHOT</version>
  138. <scope>compile</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.netflix.eureka</groupId>
  142. <artifactId>eureka-client</artifactId>
  143. <version>1.9.13</version>
  144. <scope>compile</scope>
  145. </dependency>
  146. </dependencies>
  147. <build>
  148. <plugins>
  149. <plugin>
  150. <groupId>org.springframework.boot</groupId>
  151. <artifactId>spring-boot-maven-plugin</artifactId>
  152. <version>1.5.7.RELEASE</version>
  153. <configuration>
  154. <includeSystemScope>true</includeSystemScope>
  155. </configuration>
  156. <executions>
  157. <execution>
  158. <goals>
  159. <goal>repackage</goal>
  160. </goals>
  161. </execution>
  162. </executions>
  163. </plugin>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-compiler-plugin</artifactId>
  167. <version>3.6.1</version>
  168. <configuration>
  169. <source>1.8</source>
  170. <target>1.8</target>
  171. </configuration>
  172. </plugin>
  173. <!-- <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-shade-plugin</artifactId>
  176. <version>1.2.1</version>
  177. <executions>
  178. <execution>
  179. <phase>package</phase>
  180. <goals>
  181. <goal>shade</goal>
  182. </goals>
  183. <configuration>
  184. <transformers>
  185. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  186. <mainClass>handler.Main</mainClass>
  187. </transformer>
  188. </transformers>
  189. </configuration>
  190. </execution>
  191. </executions>
  192. </plugin>-->
  193. <plugin>
  194. <artifactId>maven-assembly-plugin</artifactId>
  195. <version>2.3</version>
  196. <configuration>
  197. <descriptorRefs>
  198. <descriptorRef>jar-with-dependencies</descriptorRef>
  199. </descriptorRefs>
  200. </configuration>
  201. <executions>
  202. <execution>
  203. <phase>package</phase>
  204. <goals>
  205. <goal>single</goal>
  206. </goals>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. </project>