Exclude vertx from bookkeeper-http package (#7997)
Signed-off-by: xiaolong.ran <rxl@apache.org>
### Motivation
```
$ mvn dependency:tree|grep vertx
```
Output:
```
[INFO] +- org.apache.bookkeeper.http:vertx-http-server:jar:4.10.0:compile
[INFO] +- io.vertx:vertx-core:jar:3.5.3:compile
[INFO] +- io.vertx:vertx-web:jar:3.5.3:compile
[INFO] | +- io.vertx:vertx-auth-common:jar:3.5.3:compile
[INFO] | \- io.vertx:vertx-bridge-common:jar:3.5.3:compile
[INFO] | +- org.apache.bookkeeper.http:vertx-http-server:jar:4.10.0:provided
[INFO] | +- io.vertx:vertx-core:jar:3.5.3:provided
[INFO] | \- io.vertx:vertx-web:jar:3.5.3:provided
[INFO] | +- io.vertx:vertx-auth-common:jar:3.5.3:provided
[INFO] | \- io.vertx:vertx-bridge-common:jar:3.5.3:provided
```
### Modifications
- exclude `vertx` from bookkeeper-http package and include vertx of `3.5.3` to `vertx-http-server`
diff --git a/distribution/server/pom.xml b/distribution/server/pom.xml
index 9663aae..381ac6a 100644
--- a/distribution/server/pom.xml
+++ b/distribution/server/pom.xml
@@ -192,8 +192,41 @@
<groupId>io.netty</groupId>
<artifactId>*</artifactId>
</exclusion>
+ <!--TODO: When pulsar uses https://github.com/apache/bookkeeper/pull/2410 in -->
+ <!-- the next bk version, please remove the following content.-->
+ <exclusion>
+ <groupId>io.vertx</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
</exclusions>
</dependency>
+ <!--TODO: When pulsar uses https://github.com/apache/bookkeeper/pull/2410 in -->
+ <!-- the next bk version, please remove the following content.-->
+ <dependency>
+ <groupId>io.vertx</groupId>
+ <artifactId>vertx-core</artifactId>
+ <version>${vertx.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-annotations</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>io.vertx</groupId>
+ <artifactId>vertx-web</artifactId>
+ <version>${vertx.version}</version>
+ </dependency>
+
</dependencies>
<build>
diff --git a/distribution/server/src/assemble/LICENSE.bin.txt b/distribution/server/src/assemble/LICENSE.bin.txt
index 0ffe2ce..d88befc 100644
--- a/distribution/server/src/assemble/LICENSE.bin.txt
+++ b/distribution/server/src/assemble/LICENSE.bin.txt
@@ -499,9 +499,10 @@
* JCTools - Java Concurrency Tools for the JVM
- org.jctools-jctools-core-2.1.2.jar
* Vertx
- - io.vertx-vertx-auth-common-3.4.1.jar
- - io.vertx-vertx-core-3.4.1.jar
- - io.vertx-vertx-web-3.4.1.jar
+ - io.vertx-vertx-auth-common-3.5.3.jar
+ - io.vertx-vertx-bridge-common-3.5.3.jar
+ - io.vertx-vertx-core-3.5.3.jar
+ - io.vertx-vertx-web-3.5.3.jar
* Apache ZooKeeper
- org.apache.zookeeper-zookeeper-jute-3.5.7.jar