[ 
https://issues.apache.org/jira/browse/FLINK-32323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17732008#comment-17732008
 ] 

Martijn Visser commented on FLINK-32323:
----------------------------------------

[~qingwei91] You normally would set {{flink-streaming-java}} with a scope to 
{{provided}}. So you would end up with something like:

<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-streaming-java</artifactId>
    <version>${flink.version}</version>
    <scope>provided</scope>
</dependency>

<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-test-utils</artifactId>
    <version>${flink.version}</version>    
    <scope>test</scope>
</dependency>

This should be sufficient

> Flink Testing doc missing key information about dependency
> ----------------------------------------------------------
>
>                 Key: FLINK-32323
>                 URL: https://issues.apache.org/jira/browse/FLINK-32323
>             Project: Flink
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Lim Qing Wei
>            Priority: Major
>
> On this doc: 
> [https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/testing/]
>  
> It links to this doc 
> [https://nightlies.apache.org/flink/flink-docs-master/docs/dev/configuration/testing/]
>  for project configuration. But it does not mention to use the TestHarness 
> from Flink, we also need to add the following dependency:
>  
> {noformat}
> <dependency>
>     <groupId>org.apache.flink</groupId>
>     <artifactId>flink-streaming-java</artifactId>
>     <version>${flink.version}</version>
>     <type>test-jar</type>
>     <scope>test</scope>
> </dependency>{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to