[jira] [Created] (FLINK-15335) add-dependencies-for-IDEA not working anymore and dangerous in general

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-15335) add-dependencies-for-IDEA not working anymore and dangerous in general

Shang Yuanchun (Jira)
Nico Kruber created FLINK-15335:
-----------------------------------

             Summary: add-dependencies-for-IDEA not working anymore and dangerous in general
                 Key: FLINK-15335
                 URL: https://issues.apache.org/jira/browse/FLINK-15335
             Project: Flink
          Issue Type: Bug
          Components: Documentation, Quickstarts
    Affects Versions: 1.9.1, 1.8.3, 1.10.0
            Reporter: Nico Kruber


The quickstart's {{add-dependencies-for-IDEA}} profile (for including {{flink-runtime}} and further dependencies that are usually {{provided}}) is not automatically enabled with IntelliJ anymore since theĀ {{idea.version}} property is not set anymore (since a couple of versions of IntelliJ). My IntelliJ, for example, sets {{idea.version2019.3}} instead but even if the profile activation is changed to that, it is not enabled by default by IntelliJ.

There are two workarounds:
 * TickĀ {{Include dependencies with "Provided" scope}} in the run configuration (available in any newer IntelliJ version, probably since 2018) or
 * enable the profile manually - downside: if you create a jar inside IntelliJ via its own maven targets, the jar would contain the provided dependencies and make it unsuitable for submission into a Flink cluster.

I propose to remove the {{add-dependencies-for-IDEA}} profile for good (from the quickstarts) and adapt the documentation accordingly, e.g. [https://ci.apache.org/projects/flink/flink-docs-stable/dev/projectsetup/dependencies.html#setting-up-a-project-basic-dependencies]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)