问题描述
我目前正在开发一个需要wsimport的项目,但是我们使用的是JDK11,我刚刚发现从此版本开始,wsimport已从JDK中删除.
I'm currently working on a project which need wsimport but we use JDK11 and I just discovered that wsimport was removed from JDK since this version.
我搜索了答案,并尝试添加此依赖项,但目前无法正常工作.
I searched for answers and I tried adding this dependency but it's not working at the moment.
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.11</version>
</dependency>
我不知道的wsimport可以替代吗?
Is there any replacement for wsimport that I'm not aware of ?
谢谢!
推荐答案
今天,您可以使用fork来直接替代org.codehaus.mojo:jaxws-maven-plugin:2.5:
Today, you can use a fork as a direct replacement of org.codehaus.mojo:jaxws-maven-plugin:2.5:
<plugin>
<groupId>com.helger.maven</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
...
</configuration>
</plugin>
https://github.com/phax/jaxws-maven-plugin .它与jdk11一起很好地工作
https://github.com/phax/jaxws-maven-plugin. It works well with jdk11
这篇关于用JDK 11替换wsimport的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!