简体   繁体   English

如何添加Flyway依赖关系并构建本机映像Quarkus java.lang.ClassNotFoundException:org.jboss.vfs.VirtualFileFilter

[英]How add Flyway dependency and build native image Quarkus java.lang.ClassNotFoundException: org.jboss.vfs.VirtualFileFilter

I'm building an app using quarkus, kotlin and flyway. 我正在使用quarkus,kotlin和flyway构建应用程序。 Everything works fine with the JVM execution, but it fails when we try to build a native image. JVM执行一切正常,但是当我们尝试构建本机映像时失败。 After some debugging I found that the way Quarkus builds the native image is trying to load some dependencies from Flyway that we are not using like jboss-vfs or the Android SDK. 经过一些调试后,我发现Quarkus构建本机映像的方式正在尝试从Flyway加载一些我们没有使用的依赖项,例如jboss-vfs或Android SDK。

This is the output from the mvn package -Pnative -Dnative-image.docker-build=true command: 这是mvn package -Pnative -Dnative-image.docker-build=true命令的输出:

在此处输入图片说明

The inner exception message is 内部异常消息是

java.lang.ClassNotFoundException: org.jboss.vfs.VirtualFileFilter java.lang.ClassNotFoundException:org.jboss.vfs.VirtualFileFilter

What's the "right way" to add Flyway as a dependency and being able to compile a native image without adding all the unused/optional dependencies? 将Flyway添加为依赖项并能够在不添加所有未使用/可选依赖项的情况下编译本机映像的“正确方法”是什么?

Quarkus supports Flyway without issues when executing in JVM mode, so you can use it as always. 在JVM模式下执行时,Quarkus支持Flyway,没有问题,因此您可以像往常一样使用它。

Quarkus native applications with Flyway are not supported yet. 尚不支持带有Flyway的Quarkus本机应用程序。 Some work to support it is in progress here: https://github.com/quarkusio/quarkus/issues/1575 支持它的一些工作正在进行中: https : //github.com/quarkusio/quarkus/issues/1575

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flyway 配置 java.lang.ClassNotFoundException: org.flyway.core.Flyway - Flyway configuration java.lang.ClassNotFoundException: org.flyway.core.Flyway java.lang.ClassNotFoundException: org.jboss.logging.Logger - java.lang.ClassNotFoundException: org.jboss.logging.Logger java.lang.ClassNotFoundException:org.apache.http.util.Args-我应该添加哪个依赖项? - java.lang.ClassNotFoundException: org.apache.http.util.Args - Which dependency should I add? java.lang.ClassNotFoundException: io.quarkus.runtime.Quarkus - java.lang.ClassNotFoundException: io.quarkus.runtime.Quarkus Jboss EAP 7.0.0-java.lang.ClassNotFoundException:org.jboss.naming.remote.client.InitialContextFactory - Jboss EAP 7.0.0 - java.lang.ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory java.lang.ClassNotFoundException:com.caucho.vfs.Path - java.lang.ClassNotFoundException: com.caucho.vfs.Path SOAP JBOSS java.lang.ClassNotFoundException - SOAP JBOSS java.lang.ClassNotFoundException java.lang.ClassNotFoundException:org.jboss.naming.remote.client.InitialContextFactory - java.lang.ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory 由java.lang.ClassNotFoundException引起的钝化错误:org.jboss.wsf.spi.serviceref.ServiceRefMetaData - Passivation error caused by java.lang.ClassNotFoundException: org.jboss.wsf.spi.serviceref.ServiceRefMetaData 尽管添加了依赖项,但java.lang.ClassNotFoundException - java.lang.ClassNotFoundException inspite of adding dependency
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM