英文:
How do I know which third party dependencies are compatible with Quarkus in native mode?
问题
在开发过程中,我可能需要向我的项目中添加第三方依赖。在JVM模式下,它肯定可以工作,但是如何确定哪些依赖与Quarkus本机模式不兼容呢?
英文:
In the course of development I may need to add third party dependencies to my project. In JVM mode it sure works, but how can I identify which dependencies are incompatible with Quarkus native mode?
答案1
得分: 5
只要您的依赖通过扩展引入,那么通过扩展的使用在本地模式下是可以正常工作的。如果您直接拉取扩展依赖之外的依赖,那么 Quarkus 无法保证这一点。这并不意味着它不能工作,只是不能保证。
最好的做法是与 Quarkus 社区讨论您想要添加的依赖。有可能其他人正在为它开发一个扩展。
英文:
As long as your dependency is brought via an extension, then it's usage via the extension is known to work in native mode. If you directly pull a dependency outside an extension dependency, then Quarkus can't guarantee this. This does not mean it won't work, just that this cannot be guaranteed.
The best course of action is to discuss the dependency you want to add with the Quarkus community. It's possible, someone else it working on an extension for it.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论