pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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>schedule-flink</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <description>多模态解析 - Flink 批流一体处理模块</description>
  10. <properties>
  11. <maven.compiler.source>17</maven.compiler.source>
  12. <maven.compiler.target>17</maven.compiler.target>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <flink.version>1.18.1</flink.version>
  15. <scala.binary.version>2.12</scala.binary.version>
  16. </properties>
  17. <dependencies>
  18. <!-- Flink Core Dependencies -->
  19. <dependency>
  20. <groupId>org.apache.flink</groupId>
  21. <artifactId>flink-java</artifactId>
  22. <version>${flink.version}</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.apache.flink</groupId>
  26. <artifactId>flink-streaming-java</artifactId>
  27. <version>${flink.version}</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.apache.flink</groupId>
  31. <artifactId>flink-clients</artifactId>
  32. <version>${flink.version}</version>
  33. </dependency>
  34. <!-- Flink Connectors -->
  35. <dependency>
  36. <groupId>org.apache.flink</groupId>
  37. <artifactId>flink-connector-files</artifactId>
  38. <version>${flink.version}</version>
  39. </dependency>
  40. <!-- HTTP Client (调用 parse-service 和 embedding-api) -->
  41. <dependency>
  42. <groupId>com.squareup.okhttp3</groupId>
  43. <artifactId>okhttp</artifactId>
  44. <version>4.12.0</version>
  45. </dependency>
  46. <!-- JSON -->
  47. <dependency>
  48. <groupId>com.alibaba</groupId>
  49. <artifactId>fastjson</artifactId>
  50. <version>1.2.83</version>
  51. </dependency>
  52. <!-- Lombok -->
  53. <dependency>
  54. <groupId>org.projectlombok</groupId>
  55. <artifactId>lombok</artifactId>
  56. <version>1.18.30</version>
  57. <scope>provided</scope>
  58. </dependency>
  59. <!-- Logging - Flink 运行时会提供,但本地测试需要 -->
  60. <dependency>
  61. <groupId>org.slf4j</groupId>
  62. <artifactId>slf4j-api</artifactId>
  63. <version>1.7.36</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.logging.log4j</groupId>
  67. <artifactId>log4j-slf4j-impl</artifactId>
  68. <version>2.17.1</version>
  69. </dependency>
  70. <!-- Testing -->
  71. <dependency>
  72. <groupId>org.apache.flink</groupId>
  73. <artifactId>flink-test-utils</artifactId>
  74. <version>${flink.version}</version>
  75. <scope>test</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.junit.jupiter</groupId>
  79. <artifactId>junit-jupiter</artifactId>
  80. <version>5.10.0</version>
  81. <scope>test</scope>
  82. </dependency>
  83. </dependencies>
  84. <build>
  85. <plugins>
  86. <!-- Java Compiler -->
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-compiler-plugin</artifactId>
  90. <version>3.11.0</version>
  91. <configuration>
  92. <source>17</source>
  93. <target>17</target>
  94. </configuration>
  95. </plugin>
  96. <!-- Flink Uber JAR -->
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-shade-plugin</artifactId>
  100. <version>3.5.0</version>
  101. <executions>
  102. <execution>
  103. <phase>package</phase>
  104. <goals>
  105. <goal>shade</goal>
  106. </goals>
  107. <configuration>
  108. <artifactSet>
  109. <excludes>
  110. <exclude>org.apache.flink:flink-shaded-force-shading</exclude>
  111. <exclude>com.google.code.findbugs:jsr305</exclude>
  112. <exclude>org.slf4j:*</exclude>
  113. <exclude>org.apache.logging.log4j:*</exclude>
  114. </excludes>
  115. </artifactSet>
  116. <filters>
  117. <filter>
  118. <artifact>*:*</artifact>
  119. <excludes>
  120. <exclude>META-INF/*.SF</exclude>
  121. <exclude>META-INF/*.DSA</exclude>
  122. <exclude>META-INF/*.RSA</exclude>
  123. </excludes>
  124. </filter>
  125. </filters>
  126. <transformers>
  127. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  128. <mainClass>com.yusys.flink.MultimodalParseJob</mainClass>
  129. </transformer>
  130. </transformers>
  131. </configuration>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. </project>