英文文献采集
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.

163 lines
6.7 KiB

  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. <groupId>com.bfd</groupId>
  6. <artifactId>youzhiApi</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>youzhiApi</name>
  9. <description>youzhiApi</description>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <spring-boot.version>2.6.13</spring-boot.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.mybatis.spring.boot</groupId>
  23. <artifactId>mybatis-spring-boot-starter</artifactId>
  24. <version>2.2.2</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.mysql</groupId>
  28. <artifactId>mysql-connector-j</artifactId>
  29. <scope>runtime</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.projectlombok</groupId>
  33. <artifactId>lombok</artifactId>
  34. <optional>true</optional>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-test</artifactId>
  39. <scope>test</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.squareup.okhttp3</groupId>
  43. <artifactId>okhttp</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.alibaba.fastjson2</groupId>
  47. <artifactId>fastjson2</artifactId>
  48. <version>2.0.17</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>cn.hutool</groupId>
  52. <artifactId>hutool-all</artifactId>
  53. <version>5.8.27</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.kafka</groupId>
  57. <artifactId>kafka-clients</artifactId>
  58. <version>2.7.1</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.jsoup</groupId>
  62. <artifactId>jsoup</artifactId>
  63. <version>1.7.3</version>
  64. </dependency>
  65. </dependencies>
  66. <dependencyManagement>
  67. <dependencies>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-dependencies</artifactId>
  71. <version>${spring-boot.version}</version>
  72. <type>pom</type>
  73. <scope>import</scope>
  74. </dependency>
  75. </dependencies>
  76. </dependencyManagement>
  77. <build>
  78. <plugins>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-jar-plugin</artifactId>
  82. <configuration>
  83. <!--不打入jar包的文件类型或者路径-->
  84. <excludes>
  85. <exclude>*.properties</exclude>
  86. <exclude>*.yml</exclude>
  87. <exclude>*.yaml</exclude>
  88. </excludes>
  89. <archive>
  90. <manifest>
  91. <!-- 执行的主程序路径 -->
  92. <mainClass>com.bfd.youzhiapi.YouzhiApiApplication</mainClass>
  93. <!--是否要把第三方jar放到manifest的classpath中-->
  94. <addClasspath>true</addClasspath>
  95. <!--生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/-->
  96. <classpathPrefix>lib/</classpathPrefix>
  97. <!-- 打包时 MANIFEST.MF 文件不记录的时间戳版本 -->
  98. <useUniqueVersions>false</useUniqueVersions>
  99. </manifest>
  100. <manifestEntries>
  101. <!-- 在 Class-Path 下添加配置文件的路径 -->
  102. <Class-Path>config/</Class-Path>
  103. </manifestEntries>
  104. </archive>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-dependency-plugin</artifactId>
  110. <executions>
  111. <execution>
  112. <id>copy</id>
  113. <phase>package</phase>
  114. <goals>
  115. <goal>copy-dependencies</goal>
  116. </goals>
  117. <configuration>
  118. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  119. </configuration>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. <plugin>
  124. <artifactId>maven-resources-plugin</artifactId>
  125. <executions>
  126. <execution>
  127. <id>copy-resources</id>
  128. <phase>package</phase>
  129. <goals>
  130. <goal>copy-resources</goal>
  131. </goals>
  132. <configuration>
  133. <resources>
  134. <!--把配置文件打包到指定路径-->
  135. <resource>
  136. <directory>src/main/resources/</directory>
  137. <includes>
  138. <include>*.properties</include>
  139. <include>*.yml</include>
  140. <exclude>*.yaml</exclude>
  141. </includes>
  142. </resource>
  143. </resources>
  144. <outputDirectory>${project.build.directory}/config</outputDirectory>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-compiler-plugin</artifactId>
  152. <configuration>
  153. <source>8</source>
  154. <target>8</target>
  155. </configuration>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. </project>