This is an automated email from the ASF dual-hosted git repository.
chenhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 42054e0 fix java_test_functions build failed (#11829)
42054e0 is described below
commit 42054e057272770aa3e787f9559513e66bf9d1d6
Author: Hang Chen <[email protected]>
AuthorDate: Sun Aug 29 12:08:57 2021 +0800
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
---
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 539a135..999a0c2 100644
--- a/tests/docker-images/java-test-functions/pom.xml
+++ b/tests/docker-images/java-test-functions/pom.xml
@@ -39,6 +39,17 @@
<artifactId>pulsar-client</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro</artifactId>
+ <version>${avro.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ <version>${jackson.databind.version}</version>
+ </dependency>
</dependencies>
<packaging>jar</packaging>