2

我正在尝试运行 Apache Flink,但由于依赖项不可用而出现错误。模块是否flink-streaming-java仍然可用。

<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-streaming-java</artifactId>
    <version>0.10-SNAPSHOT</version>
    <scope>test</scope>
    <type>test-jar</type>
</dependency>

我使用了 0.9.1 和其他几个版本,但它们都不起作用。

在 flink-streaming-java 中进一步检查https://github.com/apache/flink/blob/master/flink-streaming-java/pom.xml

成立 -

<!-- disable fork reuse for the streaming project, because of
     incorrect declaration of tests -->
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <reuseForks>false</reuseForks>
    </configuration>
</plugin>
4

2 回答 2

0
https://mvnrepository.com/artifact/org.apache.flink/flink-streaming-java


<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-streaming-java_2.11</artifactId>
    <version>1.4.2</version>
    <scope>provided</scope>
</dependency>
于 2018-04-05T15:15:33.820 回答
0

Flink Streaming Java » 0.10.0

<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-streaming-java</artifactId>
    <version>0.10.0</version>
</dependency>
于 2015-11-20T17:48:11.117 回答