You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ufuk Celebi (JIRA)" <ji...@apache.org> on 2017/07/04 07:36:00 UTC
[jira] [Closed] (FLINK-7032) Intellij is constantly changing
language level of sub projects back to 1.6
[ https://issues.apache.org/jira/browse/FLINK-7032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ufuk Celebi closed FLINK-7032.
------------------------------
Resolution: Fixed
Fix Version/s: 1.3.2
1.4.0
Fixed in 5f4296e (release-1.3), d17a4b9 (master).
[~pnowojski] I've applied the commit to the release-1.3 branch as well.
> Intellij is constantly changing language level of sub projects back to 1.6
> ---------------------------------------------------------------------------
>
> Key: FLINK-7032
> URL: https://issues.apache.org/jira/browse/FLINK-7032
> Project: Flink
> Issue Type: Improvement
> Components: Build System
> Reporter: Piotr Nowojski
> Assignee: Piotr Nowojski
> Fix For: 1.4.0, 1.3.2
>
>
> Every time I do maven reimport projects, Intellij is switching back to 1.6 language level. I tracked down this issue to misconfiguration in our pom.xml file. It correctly configure maven-compiler-plugin:
> {code:xml}
> <plugin>
> <!-- just define the Java version to be used for compiling and plugins -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>3.1</version><!--$NO-MVN-MAN-VER$-->
> <configuration>
> <source>${java.version}</source>
> <target>${java.version}</target>
> <!-- The output of Xlint is not shown by default, but we activate it for the QA bot
> to be able to get more warnings -->
> <compilerArgument>-Xlint:all</compilerArgument>
> </configuration>
> </plugin>
> {code}
> where ${java.version} is set to 1.7 in the properties, but it forgets to overwrite the following properties from apache-18.pom:
> {code:xml}
> <properties>
> <maven.compiler.source>1.6</maven.compiler.source>
> <maven.compiler.target>1.6</maven.compiler.target>
> </properties>
> {code}
> It seems like compiling from console using maven ignores those values, but they are confusing Intellij.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)