From aa039ce37ec076afd7b684ce5796f0e71f2d50fb Mon Sep 17 00:00:00 2001 From: Hang Chen Date: Sun, 29 Aug 2021 12:08:57 +0800 Subject: [PATCH] fix java_test_functions build failed (#11829) ### Motivation When build java-test-functions, it throw the following exception [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project java-test-functions: Compilation failure: Compilation failure: [ERROR] /Users/hangc/Workspace/release/pulsar-2.8.1/v2/pulsar/tests/docker-images/java-test-functions/src/main/java/org/apache/pulsar/tests/integration/io/TestGenericObjectSink.java:[21,38] package com.fasterxml.jackson.databind does not exist [ERROR] /Users/hangc/Workspace/release/pulsar-2.8.1/v2/pulsar/tests/docker-images/java-test-functions/src/main/java/org/apache/pulsar/tests/integration/io/TestGenericObjectSink.java:[23,31] package org.apache.avro.generic does not exist [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ### Modification add maven dependency for java-test-functions module (cherry picked from commit 42054e057272770aa3e787f9559513e66bf9d1d6) --- tests/docker-images/java-test-functions/pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/docker-images/java-test-functions/pom.xml b/tests/docker-images/java-test-functions/pom.xml index 55f4ae1ccc956..7459b9e38e3c6 100644 --- a/tests/docker-images/java-test-functions/pom.xml +++ b/tests/docker-images/java-test-functions/pom.xml @@ -39,6 +39,17 @@ pulsar-client ${project.version} + + org.apache.avro + avro + ${avro.version} + + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.databind.version} + jar