You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MNG-6096] Deprecate DefaultArtifactVersion class #7346
and, with DefaultVersion used in API, it doesn't seem like it's possible to remove it without either breaking API or providing a new concrete implementation.
Hi, I’d like to take this if it’s still wanted. DefaultArtifactVersion currently isn’t deprecated on master. It lives in compat/maven-artifact and all ten of its main-code usages are under compat/. Joseph Walton asked in 2019 what the long-term replacement is and I couldn’t find an answer. What should the @deprecated note point to: ComparableVersion, or the Maven 4 API version classes? And is deprecating it in the compat layer still desired, given the discussion about removing maven-compat? I’ll wait for a maintainer’s answer before opening a PR.
Activity
jira-importer commentedon Sep 24, 2016
Karl Heinz Marbaise commented
Done in d56ddc61e59fbc5256e766fa91e900b099f2d038
jira-importer commentedon Jan 9, 2017
Stephen Connolly commented
Maven 3.4.0 has been dropped. See this thread for more details.
This issue will need to be re-scheduled for a Maven release in the (hopefully near) future.
jira-importer commentedon Apr 22, 2019
Joseph Walton commented
This looks like a trivial change to reschedule; what's the long-term story here? Is the alternative
ComparableVersion?DefaultArtifactVersionis still used throughout Maven:and, with
DefaultVersionused in API, it doesn't seem like it's possible to remove it without either breaking API or providing a new concrete implementation.Shreekar-cloud commentedon Oct 19, 2026
Hi, I’d like to take this if it’s still wanted. DefaultArtifactVersion currently isn’t deprecated on master. It lives in compat/maven-artifact and all ten of its main-code usages are under compat/. Joseph Walton asked in 2019 what the long-term replacement is and I couldn’t find an answer. What should the @deprecated note point to: ComparableVersion, or the Maven 4 API version classes? And is deprecating it in the compat layer still desired, given the discussion about removing maven-compat? I’ll wait for a maintainer’s answer before opening a PR.