Skip to content

Feat: migrate core to JSR330#11916

Merged
cstamas merged 15 commits intoapache:maven-3.10.xfrom
cstamas:maven-3.10.x-jsr330
Apr 10, 2026
Merged

Feat: migrate core to JSR330#11916
cstamas merged 15 commits intoapache:maven-3.10.xfrom
cstamas:maven-3.10.x-jsr330

Conversation

@cstamas
Copy link
Copy Markdown
Member

@cstamas cstamas commented Apr 9, 2026

Changes:

  • migrate off plexus DI and Plexus component XML (but NO logger should be static!)
  • replace Plexus Logger with Slf4j Logger where it is trivial to do so
  • plexus DI migration is 100%, only module on Plexus DI is maven-compat now
  • Logger migration is not 100%, as there are places where Plexus Logger are still being passed on

@cstamas cstamas requested a review from slawekjaranowski April 9, 2026 17:11
@cstamas cstamas self-assigned this Apr 9, 2026
@cstamas cstamas added this to the 3.10.0 milestone Apr 9, 2026
@cstamas

This comment was marked as outdated.

@cstamas cstamas marked this pull request as ready for review April 9, 2026 19:05
@cstamas cstamas added the enhancement New feature or request label Apr 9, 2026
Map<String, LifecycleMapping> filtered = new HashMap<>();
// filter by visibility (plexus vs sisu diff; "realms" are plexus thing)
// in some tests container is not injected
if (this.plexusContainer != null) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it possible to have null value for @Inject

If it is problem in tests maybe we should fix test?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, UT only. At runtime guice will fail if nothing to inject (and injection point is not nullable)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ok, we can try fix in next round 😄

@cstamas cstamas merged commit 2e46ea2 into apache:maven-3.10.x Apr 10, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants