脚本分析应用
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.

165 lines
6.8 KiB

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