pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.1.RELEASE</version>
  9. <relativePath /> <!-- lookup parent from repository -->
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>xynet-service-marketing</artifactId>
  13. <version>1.0</version>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <java.version>1.8</java.version>
  18. <spring-cloud.version>Hoxton.SR6</spring-cloud.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.cloud</groupId>
  23. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.projectlombok</groupId>
  27. <artifactId>lombok</artifactId>
  28. </dependency>
  29. <!-- hutool -->
  30. <dependency>
  31. <groupId>cn.hutool</groupId>
  32. <artifactId>hutool-all</artifactId>
  33. <version>5.8.10</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. <exclusions><!-- 去掉默认配置 -->
  39. <exclusion>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-logging</artifactId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-log4j2</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-actuator</artifactId>
  52. </dependency>
  53. <!-- String工具类 -->
  54. <dependency>
  55. <groupId>org.apache.commons</groupId>
  56. <artifactId>commons-lang3</artifactId>
  57. </dependency>
  58. <!-- mysql 依赖 -->
  59. <dependency>
  60. <groupId>mysql</groupId>
  61. <artifactId>mysql-connector-java</artifactId>
  62. </dependency>
  63. <!-- mybatis-plus -->
  64. <dependency>
  65. <groupId>com.baomidou</groupId>
  66. <artifactId>mybatis-plus-boot-starter</artifactId>
  67. <version>3.5.2</version>
  68. </dependency>
  69. <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
  70. <dependency>
  71. <groupId>javax.servlet</groupId>
  72. <artifactId>javax.servlet-api</artifactId>
  73. <scope>provided</scope>
  74. </dependency>
  75. <!-- redis -->
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-data-redis</artifactId>
  79. </dependency>
  80. <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
  81. <dependency>
  82. <groupId>com.fasterxml.jackson.core</groupId>
  83. <artifactId>jackson-databind</artifactId>
  84. </dependency>
  85. <!-- https://mvnrepository.com/artifact/com.auth0/java-jwt -->
  86. <dependency>
  87. <groupId>com.auth0</groupId>
  88. <artifactId>java-jwt</artifactId>
  89. <version>3.10.3</version>
  90. </dependency>
  91. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  92. <dependency>
  93. <groupId>com.alibaba</groupId>
  94. <artifactId>fastjson</artifactId>
  95. <version>1.2.71</version>
  96. </dependency>
  97. <!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-spring 生成加盐密码 -->
  98. <dependency>
  99. <groupId>org.apache.shiro</groupId>
  100. <artifactId>shiro-spring</artifactId>
  101. <version>1.5.3</version>
  102. </dependency>
  103. <!--poi依赖 -->
  104. <dependency>
  105. <groupId>org.apache.poi</groupId>
  106. <artifactId>poi-ooxml</artifactId>
  107. <version>3.14</version>
  108. </dependency>
  109. <!-- 导出excel相关的jar包 -->
  110. <!-- <dependency>
  111. <groupId>org.apache.poi</groupId>
  112. <artifactId>poi</artifactId>
  113. <version>3.10-FINAL</version>
  114. </dependency>-->
  115. <!-- apache httpclient组件 -->
  116. <dependency>
  117. <groupId>org.apache.httpcomponents</groupId>
  118. <artifactId>httpclient</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.springframework.cloud</groupId>
  122. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  123. <version>2.2.3.RELEASE</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework.cloud</groupId>
  127. <artifactId>spring-cloud-starter-openfeign</artifactId>
  128. <version>2.2.3.RELEASE</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.squareup.okhttp3</groupId>
  132. <artifactId>okhttp</artifactId>
  133. <version>4.9.0</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-configuration-processor</artifactId>
  138. <optional>true</optional>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.redisson</groupId>
  142. <artifactId>redisson</artifactId>
  143. <version>3.17.6</version>
  144. </dependency>
  145. </dependencies>
  146. <dependencyManagement>
  147. <dependencies>
  148. <dependency>
  149. <groupId>org.springframework.cloud</groupId>
  150. <artifactId>spring-cloud-dependencies</artifactId>
  151. <version>${spring-cloud.version}</version>
  152. <type>pom</type>
  153. <scope>import</scope>
  154. </dependency>
  155. </dependencies>
  156. </dependencyManagement>
  157. <build>
  158. <plugins>
  159. <plugin>
  160. <artifactId>maven-jar-plugin</artifactId>
  161. <version>2.6</version>
  162. <configuration>
  163. <archive>
  164. <manifest>
  165. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  166. <addClasspath>true</addClasspath>
  167. <mainClass>com.xynet.marketing.MarketingApplication</mainClass>
  168. <classpathPrefix>dependency</classpathPrefix>
  169. <useUniqueVersions>false</useUniqueVersions>
  170. </manifest>
  171. </archive>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <artifactId>maven-dependency-plugin</artifactId>
  176. <executions>
  177. <execution>
  178. <id>copy-dependencies</id>
  179. <phase>package</phase>
  180. <goals>
  181. <goal>copy-dependencies</goal>
  182. </goals>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. <plugin>
  187. <artifactId>maven-compiler-plugin</artifactId>
  188. <configuration>
  189. <source>1.8</source>
  190. <target>1.8</target>
  191. <encoding>UTF-8</encoding>
  192. <compilerArguments>
  193. <extdirs>${project.basedir}/src/main/lib</extdirs>
  194. </compilerArguments>
  195. </configuration>
  196. </plugin>
  197. <!-- maven打包跳过编译 -->
  198. <plugin>
  199. <groupId>org.apache.maven.plugins</groupId>
  200. <artifactId>maven-surefire-plugin</artifactId>
  201. <configuration>
  202. <skip>true</skip>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. <defaultGoal>compile</defaultGoal>
  207. <resources>
  208. <resource>
  209. <directory>src/main/java</directory>
  210. <includes>
  211. <include>**/*.properties</include>
  212. <include>**/*.xml</include>
  213. </includes>
  214. <filtering>false</filtering>
  215. </resource>
  216. <resource>
  217. <directory>src/main/resources</directory>
  218. </resource>
  219. </resources>
  220. </build>
  221. </project>