[
https://issues.apache.org/jira/browse/FLINK-15335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17439990#comment-17439990
]
Cedric Pelvet commented on FLINK-15335:
---------------------------------------
This is just plain wrong. Not only is the {{idea.version}} still set up to the
2021.2 version of IntelliJ, but it is now a pain to quickstart a new project
because the profile was removed. I need to manually add the profile back to the
generated {{pom.xml}} and am considering to fork the archetype which would be a
shame. This a clear regression.
> 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.8.3, 1.9.1, 1.10.0
> Reporter: Nico Kruber
> Assignee: Chesnay Schepler
> Priority: Major
> Labels: pull-request-available, usability
> Fix For: 1.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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.20.1#820001)