Replacement for wsimport with JDK 11

Etienne Ringot picture Etienne Ringot · Nov 12, 2018 · Viewed 24k times · Source

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>

Is there any replacement for wsimport that I'm not aware of ?

Thank you !

Answer

Florian Prud&#39;homme picture Florian Prud'homme · Mar 3, 2019

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. It works well with jdk11