使用 maven 从 wsdl 文件生成 Kotlin 类

问题描述 投票:0回答:1

我想从给定的 wsdl 文件生成 Kotlin 类。我如何使用 jaxb2-maven-plugin 或 cxf-codegen-plugin 等 Maven 插件来做到这一点?

提前致谢!

kotlin wsdl maven-plugin
1个回答
0
投票

您可以使用https://github.com/suer/wsdl2kotlin

org.codefirst.wsdl2kotlin wsdl2kotlin 0.6.0-快照 安装:通过命令行运行 $ mvn 安装

并且您必须使用“https://maven.pkg.github.com/suer/wsdl2kotlin”存储库。 我不喜欢最后一个点和零版本。 所以我不确定并有疑问:

在生产中使用这个库是个好主意吗?

© www.soinside.com 2019 - 2024. All rights reserved.