文字翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

198 lines
8.0 KiB

11 months ago
  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. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.4.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.bfd</groupId>
  12. <artifactId>crawl_translate</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>crawl_translate</name>
  15. <description>crawl_translate</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-web</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>mysql</groupId>
  26. <artifactId>mysql-connector-java</artifactId>
  27. <scope>runtime</scope>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. <optional>true</optional>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-test</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.elasticsearch</groupId>
  41. <artifactId>elasticsearch</artifactId>
  42. <version>6.0.0</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.elasticsearch.client</groupId>
  46. <artifactId>elasticsearch-rest-client</artifactId>
  47. <version>6.0.0</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.elasticsearch.client</groupId>
  51. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  52. <version>6.0.0</version>
  53. <exclusions>
  54. <exclusion>
  55. <groupId>org.elasticsearch.client</groupId>
  56. <artifactId>elasticsearch-rest-client</artifactId>
  57. </exclusion>
  58. </exclusions>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.squareup.okhttp3</groupId>
  62. <artifactId>okhttp</artifactId>
  63. <version>3.11.0</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.alibaba</groupId>
  67. <artifactId>fastjson</artifactId>
  68. <version>2.0.12</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>cn.hutool</groupId>
  72. <artifactId>hutool-all</artifactId>
  73. <version>5.8.9</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.kafka</groupId>
  77. <artifactId>kafka-clients</artifactId>
  78. <version>2.7.1</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.poi</groupId>
  82. <artifactId>poi-ooxml</artifactId>
  83. <version>5.2.2</version>
  84. </dependency>
  85. <!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-client -->
  86. <dependency>
  87. <groupId>de.codecentric</groupId>
  88. <artifactId>spring-boot-admin-client</artifactId>
  89. <version>2.2.4</version>
  90. </dependency>
  91. <!--redis -->
  92. <dependency>
  93. <groupId>org.redisson</groupId>
  94. <artifactId>redisson-spring-boot-starter</artifactId>
  95. <version>3.13.6</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-data-redis</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.curator</groupId>
  103. <artifactId>curator-framework</artifactId>
  104. <version>5.2.0</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.curator</groupId>
  108. <artifactId>curator-recipes</artifactId>
  109. <version>5.2.0</version>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-jar-plugin</artifactId>
  117. <configuration>
  118. <!--不打入jar包的文件类型或者路径-->
  119. <excludes>
  120. <exclude>*.properties</exclude>
  121. <exclude>*.yml</exclude>
  122. <exclude>*.yaml</exclude>
  123. </excludes>
  124. <archive>
  125. <manifest>
  126. <!-- 执行的主程序路径 -->
  127. <mainClass>com.bfd.crawl_translate.CrawlTranslateApplication</mainClass>
  128. <!--是否要把第三方jar放到manifest的classpath中-->
  129. <addClasspath>true</addClasspath>
  130. <!--生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/-->
  131. <classpathPrefix>lib/</classpathPrefix>
  132. <!-- 打包时 MANIFEST.MF 文件不记录的时间戳版本 -->
  133. <useUniqueVersions>false</useUniqueVersions>
  134. </manifest>
  135. <manifestEntries>
  136. <!-- 在 Class-Path 下添加配置文件的路径 -->
  137. <Class-Path>lib/pauseTool-1.0.jar config/</Class-Path>
  138. </manifestEntries>
  139. </archive>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-dependency-plugin</artifactId>
  145. <executions>
  146. <execution>
  147. <id>copy</id>
  148. <phase>package</phase>
  149. <goals>
  150. <goal>copy-dependencies</goal>
  151. </goals>
  152. <configuration>
  153. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  154. </configuration>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. <plugin>
  159. <artifactId>maven-resources-plugin</artifactId>
  160. <executions>
  161. <execution>
  162. <id>copy-resources</id>
  163. <phase>package</phase>
  164. <goals>
  165. <goal>copy-resources</goal>
  166. </goals>
  167. <configuration>
  168. <resources>
  169. <!--把配置文件打包到指定路径-->
  170. <resource>
  171. <directory>src/main/resources/</directory>
  172. <includes>
  173. <include>*.properties</include>
  174. <include>*.yml</include>
  175. <exclude>*.yaml</exclude>
  176. </includes>
  177. </resource>
  178. </resources>
  179. <outputDirectory>${project.build.directory}/config</outputDirectory>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-compiler-plugin</artifactId>
  187. <configuration>
  188. <source>8</source>
  189. <target>8</target>
  190. </configuration>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </project>