[
https://issues.apache.org/jira/browse/FLINK-10209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16634014#comment-16634014
]
ASF GitHub Bot commented on FLINK-10209:
----------------------------------------
zentol closed pull request #6663: [FLINK-10209][build] Exclude jdk.tools
dependency from hadoop
URL: https://github.com/apache/flink/pull/6663
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/pom.xml b/pom.xml
index 326e9ecdd80..5a30e33f90c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -593,6 +593,42 @@ under the License.
<profiles>
+ <profile>
+ <id>java9</id>
+ <activation>
+ <jdk>9</jdk>
+ </activation>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+
<groupId>org.apache.hadoop</groupId>
+
<artifactId>hadoop-common</artifactId>
+ <exclusions>
+ <exclusion>
+ <!-- This
dependency is not available with java 9.-->
+
<groupId>jdk.tools</groupId>
+
<artifactId>jdk.tools</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+
<groupId>org.apache.hadoop</groupId>
+
<artifactId>hadoop-common</artifactId>
+ <type>test-jar</type>
+ <exclusions>
+ <exclusion>
+ <!-- This
dependency is not available with java 9.-->
+
<groupId>jdk.tools</groupId>
+
<artifactId>jdk.tools</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ </profile>
+
<profile>
<id>fast</id>
<activation>
@@ -1596,6 +1632,9 @@ under the License.
<skipPomModules>true</skipPomModules>
<!-- Don't break build
on newly added maven modules -->
<ignoreNonResolvableArtifacts>true</ignoreNonResolvableArtifacts>
+ <includeModules>
+
<includeModule>.*flink.*</includeModule>
+ </includeModules>
</parameter>
<dependencies>
<dependency>
----------------------------------------------------------------
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)