The Jakarta XML Web Services migration adds jakarta.xml.ws-api for imports the parser could not resolve - #1266
Merged
jkschneider merged 1 commit intoOct 4, 2026
Conversation
jkschneider
force-pushed
the
jakarta/jaxws-api-for-imports
branch
from
October 3, 2026 22:26
01b641d to
9beeb73
Compare
jkschneider
added this pull request to stack #1284
October 4, 2026 09:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Java 8 ships JAX-WS as well, so
javax.xml.wsimports in Java 8 LSTs are unresolved, andJavaxXmlWsMigrationToJakartaXmlWsmoved them tojakarta.xml.wswithout addingjakarta.xml.ws-api, because it only relocates an existing API dependency and itsAddDependency(forjaxws-rt) needs resolved types. It now runsAddApiDependencyForImports(the #1257 recipe as generalized at the bottom of this stack) forjakarta.xml.wsand 3.0.x. The step that changedjakarta.xml.ws-apitoprovidedscope in every build is removed, because on the next cycle it demoted the API this recipe had just added, so an existing API dependency now keeps its declared scope.Found by a team of coding agents reviewing a Moderne run of
org.openrewrite.java.migrate.jakarta.JavaxMigrationToJakartaover the 31 Arquillian repositories (run 20261003120559-YQoma). The issue isjaxws-api-dependency-missingin the run'sio.moderne.RecipeIssuesdata table (1 row), and the fix was discussed and reviewed on the run's message board. A row from the table, as a generalized example:Migrating JDK 8 JAX-WS imports without adding the Jakarta API dependency breaks compilation. (
arquillian/arquillian-algeron,consumer/core/pom.xml, recipeorg.openrewrite.java.migrate.jakarta.JavaxMigrationToJakarta)Before:
What the recipe produced:
Expected:
Stacked on #1265 (3 of 19); merge that one first.