Skip to content

Replace javax.annotation-api with jakarta.annotation-api 1.3.5 - #13703

Merged
slachiewicz merged 1 commit into
maven-3.10.xfrom
agent/jakarta-annotation-api-3x
Oct 30, 2026
Merged

slachiewicz merged 1 commit into
maven-3.10.xfrom
agent/jakarta-annotation-api-3x

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

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.vm elects EPL-2.0 for the dual-licensed jakarta jar: the template writes one lib/<artifactId>.license per license, so listing both would leave only the GPL text in lib/. maven-core keeps exporting the javax coordinates.

Verified: mvn verify → 1130 unit tests, RAT and spotless pass (JDK 17, macOS); the generated LICENSE lists jakarta.annotation-api-1.3.5.jar under EPL-2.0, still 28 lib/ entries


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.

@gnodet gnodet left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@slachiewicz
slachiewicz merged commit 5a7d490 into maven-3.10.x Oct 30, 2026
17 checks passed
@slachiewicz
slachiewicz deleted the agent/jakarta-annotation-api-3x branch October 30, 2026 08:18
@github-actions github-actions Bot added this to the 3.10.1 milestone Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file mvn3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants