Repository navigation
Replace javax.annotation-api with jakarta.annotation-api 1.3.5 - #13703
Merged
Merged
Conversation
javax.annotation-api's parent declares the shut-down maven.java.net repositories, which leak into every build that depends on maven-embedder. The jakarta 1.3.x jar keeps the javax.annotation packages. It is dual-licensed EPL-2.0 or GPL-2.0 with Classpath Exception; the distribution elects EPL-2.0. maven-core keeps exporting the javax coordinates for plugins and extensions that declare them.
slachiewicz
marked this pull request as ready for review
October 25, 2026 18:40
This was referenced Oct 25, 2026
gnodet
requested changes
Oct 25, 2026
Contributor
There was a problem hiding this comment.
I don't think that will work. Any plugins using javax annotation will break. This can only done when we get rid of Sisu in Maven 5 (in which case, we'll remove the javax inject and annotation dependencies I suppose). If needed, we could switch to https://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-annotation_1.3_spec/1.3/
gnodet
approved these changes
Oct 25, 2026
gnodet
left a comment
Contributor
There was a problem hiding this comment.
I'm retracting my veto — I misunderstood the change. jakarta.annotation-api:1.3.5 still exposes the javax.annotation.* package (the Jakarta EE namespace rename to jakarta.annotation.* only happened in 2.0+), so this is a clean like-for-like swap with a better-licensed artifact. +1
1 task done
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.
Fixes #13702. Drops the dependency whose parent POM adds the shut-down maven.java.net repositories to every build that depends on
maven-embedder.LICENSE.vmelects EPL-2.0 for the dual-licensed jakarta jar: the template writes onelib/<artifactId>.licenseper license, so listing both would leave only the GPL text inlib/.maven-corekeeps exporting the javax coordinates.Verified:
mvn verify→ 1130 unit tests, RAT and spotless pass (JDK 17, macOS); the generated LICENSE listsjakarta.annotation-api-1.3.5.jarunder EPL-2.0, still 28lib/entries