Skip to content

ci: install processor's reactor dependencies for fork Sonar classpath - #411

Merged
AndreasIgel merged 2 commits into
java-helpers:mainfrom
igel-devin-ai:fix/fork-sonar-reactor-deps
Nov 15, 2026
Merged

AndreasIgel merged 2 commits into
java-helpers:mainfrom
igel-devin-ai:fix/fork-sonar-reactor-deps

Conversation

@igel-devin-ai

Copy link
Copy Markdown
Contributor

Summary

  • Fix the failing Fork SonarCloud (manual approval) workflow: the sonar job dies in
    "Resolve dependency classpath from the trusted base pom" because
    mvn -pl processor dependency:build-classpath cannot resolve processor's
    sibling SNAPSHOTs (codegen-core, simple-processor, codegen-roaster,
    codegen-testing) — they exist only in the checkout, not in any remote
    repository or the runner's local repository.
  • Root cause: the step still ran mvn -pl core install, which installs only
    core. It was not updated when the codegen modules were extracted
    (codegen: extract codegen modules (codegen-core, codegen-roaster, simple-processor, codegen-testing) #368) and codegen-testing was consumed as a test dependency (build: consume test dependencies through codegen-testing #392, issue Testing helpers should be moved to own project too #375).
  • Fix: install processor with -am so all of its in-reactor dependencies
    are built and installed from the trusted base checkout. This stays correct if
    processor's module dependencies change again.
  • Also add the io.github.java-helpers.codegen group (introduced by the module
    extraction) to -DexcludeGroupIds, so internal modules are not reported as
    external libraries in sonar.java.libraries.

Failure reference: https://github.com/java-helpers/simple-builders/actions/runs/43754992648

AndreasIgel and others added 2 commits November 15, 2026 22:12
dependency:build-classpath resolves the full dependency graph of the
processor module, which since the codegen module extraction includes
codegen-core, simple-processor, codegen-roaster and codegen-testing
SNAPSHOTs. Those artifacts exist only in the checkout, so resolution
failed on a clean runner before the classpath could be computed.

Installing processor with -am puts all required sibling modules into the
local repository and stays correct if processor's module deps change
again. Also exclude the io.github.java-helpers.codegen group from the
computed library list so internal modules are not reported as external
libraries.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@AndreasIgel
AndreasIgel merged commit dfc90ea into java-helpers:main Nov 15, 2026
3 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the fix/fork-sonar-reactor-deps branch November 22, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants