-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[maven] Update from component to inject per jsr330 #949
Conversation
maven has deprecated component now.
When you say "now", what version of Maven do you mean? It also seems very weird that Maven would deprecate Component in favor of javax.inject.Inject instead of jakarta.inject.Inject. |
From Google ai
Component annotation: This annotation was used to configure injection of Plexus components by MavenPluginManager. You can use JSR 330 annotations or Parameter with default expressions instead.
.....
Also directly deprecated https://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/deprecated-list.html
Or
https://codehaus-plexus.github.io/plexus-containers/plexus-component-metadata/
Plexus itself is pretty much all deprecated.
Any maven 3.6.3+ if not earlier. Majority of core maven plugins already had replaced it.
Since recent releases it's now flagged as such.
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Christopher Tubbs ***@***.***>
Sent: Friday, January 10, 2025 3:05:58 PM
To: revelc/formatter-maven-plugin ***@***.***>
Cc: Jeremy Landis ***@***.***>; Author ***@***.***>
Subject: Re: [revelc/formatter-maven-plugin] [maven] Update from component to inject per jsr330 (PR #949)
maven has deprecated component now.
When you say "now", what version of Maven do you mean? It also seems very weird that Maven would deprecate Component in favor of javax.inject.Inject instead of jakarta.inject.Inject.
—
Reply to this email directly, view it on GitHub<#949 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHODIZXA5B4KP3UDP6WJIT2KAR2NAVCNFSM6AAAAABUPPFLBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBTHEZDGNZSGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Oh they are not on jakarta yet (namespace or otherewise). As far as the physical library they are still using the original javax copy from Google. I reported that a long time ago. They didn't care to upgrade the gav. So, they are directly on the one with missing Metadata. You can override that, but I think the configuration on this plugin makes exclusions and replacements more of a problem. The one listed here is their physical usage.
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Christopher Tubbs ***@***.***>
Sent: Friday, January 10, 2025 3:05:58 PM
To: revelc/formatter-maven-plugin ***@***.***>
Cc: Jeremy Landis ***@***.***>; Author ***@***.***>
Subject: Re: [revelc/formatter-maven-plugin] [maven] Update from component to inject per jsr330 (PR #949)
maven has deprecated component now.
When you say "now", what version of Maven do you mean? It also seems very weird that Maven would deprecate Component in favor of javax.inject.Inject instead of jakarta.inject.Inject.
—
Reply to this email directly, view it on GitHub<#949 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHODIZXA5B4KP3UDP6WJIT2KAR2NAVCNFSM6AAAAABUPPFLBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBTHEZDGNZSGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@ctubbsii FWIW maven fixed to use jakarta.inject 2.0.1 in maven 4. Of course we will have to continue support for maven 3. And there is a general understanding that plugins need to be separately supported. That said, they also have javax.inject sitting in maven 4 as well. So that goes to explain why they didn't use the correct one because it would be rather hard to do so. |
<dependency> | ||
<groupId>javax.inject</groupId> | ||
<artifactId>javax.inject</artifactId> | ||
<version>1</version> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unfortunate that javax didn't use a bom, like jakartaee does. I hate managing the javax dependency versions individually.
maven has deprecated component now.