[
https://issues.apache.org/jira/browse/FLINK-10209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16604280#comment-16604280
]
ASF GitHub Bot commented on FLINK-10209:
----------------------------------------
zentol opened a new pull request #6663: [FLINK-10209][build] Exclude jdk.tools
dependency from hadoop
URL: https://github.com/apache/flink/pull/6663
## What is the purpose of the change
This PR excludes the `jdk.tools` dependency from hadoop when building with
java 9. This dependency is for the `tools.jar` that was distributed in jdk8 and
below, but no longer present in jdk9+.
## Brief change log
* add `java9` profile that is automatically activated when using java 9
* add `dependencyManagement` entry for `hadoop-common` that excludes the
`jdk.tools` dependency
* restrict `japicmp` plugin to flink artifacts
* This change was necessary since the plugin apparently looks at all
artifacts defined in the pom. The added `hadoop-common` entry in the
`dependencyManagement` has no version attached and thus can't be resolved on
it's own in non-hadoop modules, which always caused the build to fail.
Explicitly filtering for flink modules appears to fix this.
## Verifying this change
Use `mvn help:active-profiles` to verify that the profile is not activated
on java 8 but on java 9.
I ran this commit (along with other prerequisites for java 9) here:
https://travis-ci.org/zentol/flink/builds/423911810
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Exclude jdk.tools dependency from hadoop when running with java 9
> -----------------------------------------------------------------
>
> Key: FLINK-10209
> URL: https://issues.apache.org/jira/browse/FLINK-10209
> Project: Flink
> Issue Type: Sub-task
> Components: Build System
> Affects Versions: 1.7.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.7.0
>
>
> {{hadoop-common}} has a {{jdk.tools}} dependency which cannot be resolved on
> java 9. At least for compiling we have to exclude this dependency.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)