pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.example</groupId>
  7. <artifactId>moka-data</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <redis.version>3.1.0</redis.version>
  12. <kafka.version>2.5.0</kafka.version>
  13. <springboot.version>2.1.7.RELEASE</springboot.version>
  14. </properties>
  15. <dependencyManagement>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-dependencies</artifactId>
  20. <version>2.1.7.RELEASE</version>
  21. <type>pom</type>
  22. <scope>import</scope>
  23. </dependency>
  24. </dependencies>
  25. </dependencyManagement>
  26. <dependencies>
  27. <dependency>
  28. <groupId>redis.clients</groupId>
  29. <artifactId>jedis</artifactId>
  30. <version>${redis.version}</version>
  31. <exclusions>
  32. <exclusion>
  33. <groupId>org.slf4j</groupId>
  34. <artifactId>slf4j-api</artifactId>
  35. </exclusion>
  36. </exclusions>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.kafka</groupId>
  40. <artifactId>kafka-clients</artifactId>
  41. <version>${kafka.version}</version>
  42. <exclusions>
  43. <exclusion>
  44. <groupId>org.slf4j</groupId>
  45. <artifactId>slf4j-api</artifactId>
  46. </exclusion>
  47. </exclusions>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-validation</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>net.sourceforge.nekohtml</groupId>
  59. <artifactId>nekohtml</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.alibaba</groupId>
  67. <artifactId>fastjson</artifactId>
  68. <version>1.2.62</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.projectlombok</groupId>
  72. <artifactId>lombok</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>junit</groupId>
  76. <artifactId>junit</artifactId>
  77. <version>4.11</version>
  78. <scope>test</scope>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-surefire-plugin</artifactId>
  86. <version>2.18.1</version>
  87. <configuration>
  88. <skipTests>true</skipTests>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-deploy-plugin</artifactId>
  94. <version>2.8.2</version>
  95. <configuration>
  96. <skip>true</skip>
  97. </configuration>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-maven-plugin</artifactId>
  102. <version>2.1.7.RELEASE</version>
  103. <configuration>
  104. <fork>true</fork>
  105. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  106. <includeSystemScope>true</includeSystemScope>
  107. </configuration>
  108. <executions>
  109. <execution>
  110. <goals>
  111. <goal>repackage</goal>
  112. </goals>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <!-- maven资源文件复制插件 -->
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-resources-plugin</artifactId>
  120. <version>2.7</version>
  121. <executions>
  122. <execution>
  123. <id>copy-config</id>
  124. <phase>package</phase>
  125. <goals>
  126. <goal>copy-resources</goal>
  127. </goals>
  128. <configuration>
  129. <outputDirectory>${project.build.directory}/</outputDirectory>
  130. <resources>
  131. <resource>
  132. <directory>src/main/resources</directory>
  133. <includes>
  134. <exclude>**/*.xml</exclude>
  135. <exclude>**/*.conf</exclude>
  136. <exclude>**/*.properties</exclude>
  137. </includes>
  138. <filtering>true</filtering>
  139. </resource>
  140. </resources>
  141. <encoding>UTF-8</encoding>
  142. </configuration>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-jar-plugin</artifactId>
  149. <version>2.4</version>
  150. <configuration>
  151. <finalName>moka-data</finalName>
  152. <excludes>
  153. <exclude>*.properties</exclude>
  154. </excludes>
  155. </configuration>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-compiler-plugin</artifactId>
  160. <version>3.5.1</version>
  161. <configuration>
  162. <source>1.8</source>
  163. <target>1.8</target>
  164. </configuration>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </project>