知识图谱(已弃用)
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.

254 lines
11 KiB

5 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. <packaging>jar</packaging>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.2.4.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.bfd</groupId>
  13. <artifactId>crawl_zstp</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>crawl_zstp</name>
  16. <description>crawl_zstp</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <!-- <dependency>-->
  26. <!-- <groupId>com.mysql</groupId>-->
  27. <!-- <artifactId>mysql-connector-j</artifactId>-->
  28. <!-- <scope>runtime</scope>-->
  29. <!-- </dependency>-->
  30. <dependency>
  31. <groupId>org.projectlombok</groupId>
  32. <artifactId>lombok</artifactId>
  33. <optional>true</optional>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-test</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.alibaba</groupId>
  42. <artifactId>fastjson</artifactId>
  43. <version>2.0.12</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>cn.hutool</groupId>
  47. <artifactId>hutool-all</artifactId>
  48. <version>5.8.10</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.elasticsearch</groupId>
  52. <artifactId>elasticsearch</artifactId>
  53. <version>6.0.0</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.elasticsearch.client</groupId>
  57. <artifactId>elasticsearch-rest-client</artifactId>
  58. <version>6.0.0</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.elasticsearch.client</groupId>
  62. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  63. <version>6.0.0</version>
  64. <exclusions>
  65. <exclusion>
  66. <groupId>org.elasticsearch.client</groupId>
  67. <artifactId>elasticsearch-rest-client</artifactId>
  68. </exclusion>
  69. </exclusions>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.kafka</groupId>
  73. <artifactId>kafka-clients</artifactId>
  74. <version>2.7.1</version>
  75. </dependency>
  76. <!-- <dependency>-->
  77. <!-- <groupId>javax.servlet</groupId>-->
  78. <!-- <artifactId>javax.servlet-api</artifactId>-->
  79. <!-- <version>4.0.1</version>-->
  80. <!-- </dependency>-->
  81. <!-- https://mvnrepository.com/artifact/javax.mail/mail -->
  82. <!-- <dependency>-->
  83. <!-- <groupId>javax.mail</groupId>-->
  84. <!-- <artifactId>mail</artifactId>-->
  85. <!-- <version>1.4.7</version>-->
  86. <!-- </dependency>-->
  87. <!-- <dependency>-->
  88. <!-- <groupId>io.appium</groupId>-->
  89. <!-- <artifactId>java-client</artifactId>-->
  90. <!-- <version>7.5.1</version>-->
  91. <!-- </dependency>-->
  92. <dependency>
  93. <groupId>com.squareup.okhttp3</groupId>
  94. <artifactId>okhttp</artifactId>
  95. <version>4.9.3</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.httpcomponents</groupId>
  99. <artifactId>httpclient</artifactId>
  100. <version>4.5.14</version>
  101. </dependency>
  102. <!-- <dependency>-->
  103. <!-- <groupId>com.squareup.okio</groupId>-->
  104. <!-- <artifactId>okio</artifactId>-->
  105. <!-- <version>2.8.0</version>-->
  106. <!-- </dependency>-->
  107. <!-- <dependency>-->
  108. <!-- <groupId>com.alibaba</groupId>-->
  109. <!-- <artifactId>druid</artifactId>-->
  110. <!-- <version>1.2.14</version>-->
  111. <!-- </dependency>-->
  112. <!-- <dependency>-->
  113. <!-- <groupId>org.mybatis.spring.boot</groupId>-->
  114. <!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
  115. <!-- <version>2.2.2</version>-->
  116. <!-- </dependency>-->
  117. <!-- <dependency>-->
  118. <!-- <groupId>org.apache.httpcomponents</groupId>-->
  119. <!-- <artifactId>httpcore</artifactId>-->
  120. <!-- <version>4.4.16</version>-->
  121. <!-- </dependency>-->
  122. <!-- <dependency>-->
  123. <!-- <groupId>org.apache.httpcomponents</groupId>-->
  124. <!-- <artifactId>httpclient</artifactId>-->
  125. <!-- <version>4.5.14</version>-->
  126. <!-- </dependency>-->
  127. <!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-client -->
  128. <dependency>
  129. <groupId>de.codecentric</groupId>
  130. <artifactId>spring-boot-admin-client</artifactId>
  131. <version>2.2.4</version>
  132. </dependency>
  133. </dependencies>
  134. <build>
  135. <plugins>
  136. <plugin>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-maven-plugin</artifactId>
  139. <configuration>
  140. <excludes>
  141. <exclude>
  142. <groupId>org.projectlombok</groupId>
  143. <artifactId>lombok</artifactId>
  144. </exclude>
  145. </excludes>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <!-- 指定启动类,将依赖打成外部jar包 -->
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-jar-plugin</artifactId>
  152. <configuration>
  153. <archive>
  154. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  155. <addMavenDescriptor>false</addMavenDescriptor>
  156. <manifest>
  157. <!-- 是否要把第三方jar加入到类构建路径 -->
  158. <addClasspath>true</addClasspath>
  159. <!-- 外部依赖jar包的最终位置 -->
  160. <classpathPrefix>lib/</classpathPrefix>
  161. <!-- 项目启动类 -->
  162. <mainClass>com.bfd.crawl_zstp.CrawlZstpApplication</mainClass>
  163. </manifest>
  164. <manifestEntries>
  165. <Class-Path>config/</Class-Path>
  166. </manifestEntries>
  167. </archive>
  168. <!-- &lt;!&ndash;过滤掉不希望包含在jar中的文件 &ndash;&gt;-->
  169. <!-- <excludes>-->
  170. <!-- <exclude>${project.basedir}/xml/*</exclude>-->
  171. <!-- </excludes>-->
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <!--打包时去除第三方依赖-->
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-maven-plugin</artifactId>
  178. <configuration>
  179. <layout>ZIP</layout>
  180. <includes>
  181. <include>
  182. <groupId>${project.groupId}</groupId>
  183. <artifactId>${project.groupId}</artifactId>
  184. </include>
  185. </includes>
  186. </configuration>
  187. </plugin>
  188. <!--拷贝依赖到jar外面的lib目录-->
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-dependency-plugin</artifactId>
  192. <executions>
  193. <execution>
  194. <id>copy-lib</id>
  195. <phase>package</phase>
  196. <goals>
  197. <goal>copy-dependencies</goal>
  198. </goals>
  199. <configuration>
  200. <outputDirectory>target/lib</outputDirectory>
  201. <excludeTransitive>false</excludeTransitive>
  202. <stripVersion>false</stripVersion>
  203. <includeScope>compile</includeScope>
  204. </configuration>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. <!--指定配置文件,将resources打成外部resource-->
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-jar-plugin</artifactId>
  212. <configuration>
  213. <archive>
  214. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  215. <manifestEntries>
  216. <Class-Path>resources/</Class-Path>
  217. </manifestEntries>
  218. </archive>
  219. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  220. <excludes>
  221. <exclude>*.yml</exclude>
  222. <exclude>*.xml</exclude>
  223. <exclude>mqConfig/*.xml</exclude>
  224. </excludes>
  225. </configuration>
  226. </plugin>
  227. <!-- 拷贝资源文件 外面的resource目录-->
  228. <plugin>
  229. <artifactId>maven-resources-plugin</artifactId>
  230. <executions>
  231. <execution>
  232. <id>copy-dependencies</id>
  233. <phase>package</phase>
  234. <goals>
  235. <goal>copy-resources</goal>
  236. </goals>
  237. <configuration>
  238. <!-- 资源文件输出目录 -->
  239. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  240. <resources>
  241. <resource>
  242. <directory>src/main/resources</directory>
  243. </resource>
  244. </resources>
  245. </configuration>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. </plugins>
  250. </build>
  251. </project>