Do not package java.xml.ws module in WebSphere Liberty applications

MSAL

The java.xml.ws module was removed in Java 11. WebSphere Liberty provides its own implementation of the module, which can be used by specifying the jaxws-2.2 feature in the server.xml file. This recipe updates the javax.xml.ws dependency to use the provided scope to avoid class loading issues.

org.openrewrite.java.migrate.RemovedJavaXMLWSModuleProvided
mod run . --recipe=org.openrewrite.java.migrate.RemovedJavaXMLWSModuleProvided

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change Maven dependency scope for javax.xml.ws:jaxws-api to provided
  2. Change a Gradle dependency configuration javax.xml.ws:jaxws-api to compileOnly