Repository navigation
Trim down runtime dependencies a bit - #424
Conversation
2a2ed60 to
2382d59
Compare
|
The last CI run on this branch was 2025-10-15, and GitHub has deleted the logs since, so there's no way to tell whether the change still builds against master. A rebase triggers a fresh run and makes the state readable again. If you'd rather not carry it forward, closing is equally useful — the PR isn't being ignored, it's unreadable. The branch also conflicts with master now, so that needs resolving before CI can say anything. Say the word if you'd like a hand with it. This comment was created with AI assistance. |
gnodet-bot
left a comment
There was a problem hiding this comment.
The overall direction is correct: removing sisu.plexus from compile scope (the plugin uses new DI annotations — @Mojo, @Named, @Inject — not the legacy @Component, so sisu is a runtime concern provided by Maven itself), moving maven-api-settings and maven-xml from provided to test (confirmed no imports in main sources), switching from maven-plugin-testing-harness to maven-testing, and excluding the stale maven-api-meta from maven-filtering.
Two nits before merge.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
2382d59 to
da7d0f5
Compare
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after rebase (force-push). The dependency changes are correct:
maven-api-settings,maven-xml: no imports in main sources — safe to move to test scopesisu.plexus: plugin uses Maven 4 DI annotations, sisu is a runtime concern provided by Maven — correct removalcommons-io: only used in test stubs, replaced byplexus-utils.FileUtils— clean swapmaven-api-metaexclusion frommaven-filtering: safe — stale beta-3 pin with zero imports in this pluginmaven-testingreplacingmaven-plugin-testing-harness: correct Maven 4 migration
Correction on previous review: the guice nit was a false positive. maven-testing provides guice:classes (classifier), while this POM declares guice (no classifier, v7.0.0) — different Maven artifacts, not redundant.
The junit-jupiter-api nit remains valid (redundant with maven-testing transitive) but is harmless.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
da7d0f5 to
471d0c5
Compare
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after force-push (471d0c5). The guice removal from the previous review is addressed — clean.
One nit remains from the previous review: junit-jupiter-api is still redundant with maven-testing.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
471d0c5 to
633a051
Compare
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after force-push (633a051). The guice nit from the previous review is addressed — guiceVersion property and explicit guice dependency both removed. Clean.
One nit remains unaddressed from the previous review.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after force-push (2534d98). The new commit correctly adds maven-api-settings as provided — maven-filtering:4.0.0-beta-1 transitively pulls maven-api-settings:4.0.0-beta-3, and this explicit declaration overrides it to ${mavenVersion} (rc-6), consistent with the maven-api-meta exclusion pattern.
The junit-jupiter-api nit from previous reviews remains (redundant with maven-testing transitive), but it's purely cosmetic.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after force-push (941b752). The new commit adds plexus-container-default 2.1.1 as a runtime dependency with an xbean-reflect exclusion — correct: plexus-build-api needs the Plexus container runtime after sisu.plexus was removed, and xbean-reflect is unused since Maven's Sisu handles component discovery.
Previous findings status:
- guice nit: addressed (removed in earlier commit) ✅
- junit-jupiter-api nit: not addressed — raised 4 times, clearly intentional. Not blocking.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after c0baac81 (fix: use sisu.plexus instead of plexus-container-default for runtime).
Correct call. org.eclipse.sisu:org.eclipse.sisu.plexus:1.1.0 is the proper Sisu-native Plexus adapter — it provides the legacy PlexusContainer API that plexus-build-api needs without dragging in plexus-container-default and its xbean-reflect baggage. Maven ships Sisu internally, so the runtime classes are already present; this declaration just ensures the bridge API is on the compile/runtime classpath.
Previous findings status:
- guice nit: addressed ✅
- junit-jupiter-api nit: intentionally kept by author ✅
- plexus-container-default → sisu.plexus swap: correct ✅
This review was generated by an AI agent, Hermès on behalf of @gnodet.
f135b4b to
189707e
Compare
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after 189707e7 (fix: exclude maven-api-settings from maven-filtering).
Correct. maven-api-settings has zero imports in main or test sources, and is already provided transitively by maven-api-core:4.0.0-rc-6. The exclusion on maven-filtering prevents a stale 4.0.0-beta-3 version from leaking into the classpath — same pattern as the existing maven-api-meta exclusion.
Dependency tree confirms: maven-api-core → maven-api-settings:rc-6 (provided) — no resolution gap.
Previous findings status:
- guice nit: addressed ✅
- junit-jupiter-api nit: intentionally kept by author ✅
- sisu.plexus swap: addressed ✅
This review was generated by an AI agent, Hermès on behalf of @gnodet.
- Switch to maven-testing for test infrastructure - Restore maven-api-settings as provided dependency (not runtime) - Use sisu.plexus instead of plexus-container-default for runtime - Exclude maven-api-settings from maven-filtering (already provided via maven-api-core)
189707e to
f1f5610
Compare
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-reviewed after force-push (f1f5610 — rebase/squash). The squashed commit correctly consolidates all previously-reviewed changes:
guiceVersionproperty and explicitguicedependency: removed ✅maven-api-settings,maven-xml: removed from provided scope ✅maven-api-meta+maven-api-settingsexclusions onmaven-filtering: correct — prevents stale beta-3 versions from leaking ✅sisu.plexus→runtimescope: correct — plugin uses Maven 4 DI annotations ✅commons-io→plexus-utils.FileUtils.deleteDirectory: clean swap, no API difference ✅maven-plugin-testing-harness→maven-testing: correct Maven 4 migration ✅- New test deps (
maven-api-xml,maven-api-spi,maven-jline,maven-xml,maven-core): all needed formaven-testing/ Maven 4 test harness ✅
Previous findings status:
- guice nit: addressed ✅
- junit-jupiter-api nit: intentionally kept by author ✅
This review was generated by an AI agent, Hermès on behalf of @gnodet.
No description provided.