Add explicit JAXB API dependencies and runtime

MSAL

This recipe will add explicit dependencies for Jakarta EE 8 when a Java 8 application is using JAXB. Any existing dependencies will be upgraded to the latest version of Jakarta EE 8. The artifacts are moved to Jakarta EE 8 version 2.x which allows for the continued use of the javax.xml.bind namespace. Running a full javax to Jakarta migration using org.openrewrite.java.migrate.jakarta.JavaxMigrationToJakarta will update to versions greater than 3.x which necessitates the package change as well. Modern Jakarta JAXB APIs are preserved; known legacy JAXB consumers receive a separate javax JAXB API when needed.

org.openrewrite.java.migrate.javax.AddJaxbDependenciesWithRuntime
mod run . --recipe=org.openrewrite.java.migrate.javax.AddJaxbDependenciesWithRuntime

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. Add explicit JAXB API dependencies
  2. Use latest JAXB API and runtime for Jakarta EE 8 glassfish
  3. Remove redundant explicit dependency and plugin versions
  4. Remove redundant explicit dependency and plugin versions