在Vertx(ALPN)中使用BoringSSL

时间:2019-08-05 18:19:11

标签: java maven netty vert.x

我正在尝试在Vertx中使用BoringSSL,以便可以使用ALPN。我正在运行vertx 3.7.1,并在pom.xml-

中包含以下内容
<dependency>
  <groupId>io.netty</groupId>
  <artifactId>netty-tcnative-boringssl-static</artifactId>
  <version>2.0.23.Final</version>
</dependency>

运行应用程序时,我收到以下消息:“ ALPN不适用于JDK SSL / TLS引擎”。如果我将<scope>runtime</scope><scrope>compile</scope>添加到依赖项,则通过IDE运行应用程序时将不会收到此消息。

但是,当我用任何范围(或未定义范围)构建jar时,所得的jar都不包含boringssl件。更具体地说,有一个io.netty包,但缺少io.netty.internal.tcnative

如何在我正在构建的最终jar中包含此软件包?

0 个答案:

没有答案