gnodet commented on PR #14186: URL: https://github.com/apache/maven/pull/14186#issuecomment-7281624059
_Claude Code on behalf of Guillaume Nodet_ Thanks for catching this @seregamorph — both issues have the same root cause. The O(N²) performance fix accidentally dropped the V4 API branch from `requiresDependencyOrdering()`. The original code checked `descriptor.getMojoDescriptorV4().getResolutions()` for V4 API mojos, but the inlined version only checked the legacy `getDependencyCollectionRequired()`/`getDependencyResolutionRequired()` fields. V4 mojos using `@Resolution` annotations populate the `resolutions` list but NOT those legacy fields, so the cross-project ordering edge to upstream's `after:package` was never created. Without that edge: - **Race condition**: downstream module starts compiling before upstream's JAR exists (the lifecycle link only waits for upstream's `ready`, not `package`) - **Spurious downloads**: dependency resolution falls back to remote repositories when the reactor artifact isn't built yet Fixed in e73239036b — restored `requiresDependencyOrdering()` with the V4 API path, added 4 unit tests covering V4, legacy, and no-resolution mojos plus an end-to-end plan ordering test. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
