[
https://issues.apache.org/jira/browse/FLINK-2858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14959689#comment-14959689
]
Alexander Alexandrov edited comment on FLINK-2858 at 10/15/15 10:27 PM:
------------------------------------------------------------------------
[[email protected]] After trying around for a big I managed to overcome the
issue. Here are the steps
* Run the `tools/change-scala-version.sh` script
* Run `mvn clean` from the console
* Optionally, forcefully activate the `scala-2.11` profile & deactivate
`scala-2.10` from the IntelliJ Maven panel. Strictly speeking this is not
needed because after running the script the default profile is changed to
`scala-2.11`.
* Click "Generate Sources and Update Folders for all Projects" in the same
panel (but maybe a simple "Reimport all Maven projects" will be enough)
* Run "Build > Rebuild Project"
This worked for me on the latest IntelliJ Ultimate (14.1.5).
was (Author: aalexandrov):
[[email protected]] After trying around for a big I managed to overcome the
issue. Here are the steps
* Run the `tools/change-scala-version.sh` script
* Run `mvn clean` from the console
* Activate the `scala-2.11` profile & deactivate `scala-2.10` from the IntelliJ
Maven panel
* Click "Generate Sources and Update Folders for all Projects" in the same
panel (but maybe a simple "Reimport all Maven projects" will be enough)
* Run "Build > Rebuild Project"
This worked for me on the latest IntelliJ Ultimate (14.1.5).
> Cannot build Flink Scala 2.11 with IntelliJ
> -------------------------------------------
>
> Key: FLINK-2858
> URL: https://issues.apache.org/jira/browse/FLINK-2858
> Project: Flink
> Issue Type: Bug
> Components: Build System
> Affects Versions: 0.10
> Reporter: Till Rohrmann
>
> If I activate the scala-2.11 profile from within IntelliJ (and thus
> deactivate the scala-2.10 profile) in order to build Flink with Scala 2.11,
> then Flink cannot be built. The problem is that some Scala macros cannot be
> expanded because they were compiled with the wrong version (I assume 2.10).
> This makes debugging tests with Scala 2.11 in IntelliJ impossible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)