You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2019/07/24 11:01:30 UTC

[flink] branch release-1.9 updated: [FLINK-13398][hive][build] Exclude jdk.tools

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch release-1.9
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.9 by this push:
     new ac27f95  [FLINK-13398][hive][build] Exclude jdk.tools
ac27f95 is described below

commit ac27f951c213de5f97b5e72c9a20d0fba0f9352b
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Wed Jul 24 13:00:06 2019 +0200

    [FLINK-13398][hive][build] Exclude jdk.tools
    
    Specify a direct exclusion for jdk.tools on the root dependencies, since dependencyManagement entries for transitive are ignored by the shade-plugin artifact resolution.
---
 flink-connectors/flink-connector-hive/pom.xml | 27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

diff --git a/flink-connectors/flink-connector-hive/pom.xml b/flink-connectors/flink-connector-hive/pom.xml
index b3d7ea2..95f2449 100644
--- a/flink-connectors/flink-connector-hive/pom.xml
+++ b/flink-connectors/flink-connector-hive/pom.xml
@@ -404,6 +404,11 @@ under the License.
 					<groupId>org.apache.tez</groupId>
 					<artifactId>tez-mapreduce</artifactId>
 				</exclusion>
+				<exclusion>
+					<!-- This dependency is not available with java 9.-->
+					<groupId>jdk.tools</groupId>
+					<artifactId>jdk.tools</artifactId>
+				</exclusion>
             </exclusions>
         </dependency>
 
@@ -439,6 +444,11 @@ under the License.
 					<groupId>com.google.guava</groupId>
 					<artifactId>guava</artifactId>
 				</exclusion>
+				<exclusion>
+					<!-- This dependency is not available with java 9.-->
+					<groupId>jdk.tools</groupId>
+					<artifactId>jdk.tools</artifactId>
+				</exclusion>
 			</exclusions>
         </dependency>
 
@@ -565,23 +575,6 @@ under the License.
 					</plugin>
 				</plugins>
 			</build>
-
-			<dependencyManagement>
-				<dependencies>
-					<dependency>
-						<groupId>org.apache.hbase</groupId>
-						<artifactId>hbase-annotations</artifactId>
-						<scope>test</scope>
-						<exclusions>
-							<exclusion>
-								<!-- This dependency is not available with java 9.-->
-								<groupId>jdk.tools</groupId>
-								<artifactId>jdk.tools</artifactId>
-							</exclusion>
-						</exclusions>
-					</dependency>
-				</dependencies>
-			</dependencyManagement>
 		</profile>
 	</profiles>
 </project>