Skip to content

ci(sonar): declare sonar.organization on the reactor root - #164

Merged
bernardladenthin merged 1 commit into
mainfrom
claude/dependency-plugin-updates-audit-lcubyh
Jul 27, 2026
Merged

ci(sonar): declare sonar.organization on the reactor root#164
bernardladenthin merged 1 commit into
mainfrom
claude/dependency-plugin-updates-audit-lcubyh

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

  • The SonarCloud scan failed with You must define the following mandatory properties for '<projectKey>': sonar.organization.
  • Root cause: sonar.organization was declared only in the child module POMs (srcmorph, srcmorph-cli, srcmorph-maven-plugin), but the scan runs at the reactor root.github/workflows/sonarqube.yml calls mvn ... sonar:sonar with no -f, so the analyzed project is the srcmorph-parent root pom.xml. A parent POM never sees its children's <properties>, so the root scan had no sonar.organization.
  • Fix: declare <sonar.organization>bernardladenthin</sonar.organization> in the reactor-root pom.xml <properties> (with an explanatory comment). Left in the child modules too (harmless). projectKey is unchanged — it stays the -Dsonar.projectKey=bernardladenthin_llamacpp-ai-index-maven-plugin argument in the workflow.

Scanner-root POM changed: pom.xml (reactor root, net.ladenthin:srcmorph-parent, packaging=pom).

Test plan

  • pom.xml verified well-formed (mvn -N -o validate → BUILD SUCCESS; XML parse check)
  • CI is green on this branch (SonarCloud job now finds sonar.organization)
  • Docs / CHANGELOG updated where applicable (N/A — CI-config-only change)

Related issues / PRs

Checklist

  • My commits follow Conventional Commits
  • No security-sensitive changes

Generated by Claude Code

The SonarCloud scan runs at the reactor root (.github/workflows/sonarqube.yml
calls 'mvn ... sonar:sonar' with no -f, so the analyzed project is the
srcmorph-parent POM). sonar.organization was declared only in the child
module POMs, and a parent POM never sees its children's <properties>, so the
root scan failed with:

  You must define the following mandatory properties for '<projectKey>':
  sonar.organization

Declare sonar.organization=bernardladenthin on the reactor root so the
scanner sees it. Left in the child modules too (harmless). projectKey is
unchanged (stays the -D argument in the workflow).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MeheJtyQwUzJGLcYpyWURD
@sonarqubecloud

Copy link
Copy Markdown

@bernardladenthin
bernardladenthin merged commit 1f6a6ca into main Jul 27, 2026
10 of 15 checks passed
@bernardladenthin
bernardladenthin deleted the claude/dependency-plugin-updates-audit-lcubyh branch July 27, 2026 19:46
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