Thank you for the suggestion, tried the pared down args and unfortunately getting the same result.
Found this semi-related issue: StackOverflowError at DefaultInputComponent.equals - #5 by Andrew_Swan
The suggestion there was to add sonar.moduleKey
. If I add that with the name of the module it appears to work:
mvn -B sonar:sonar -Dsonar.moduleKey=baz
-Dsonar.host.url=https://sonar.foo.com/sonar
-Dsonar.projectKey=com.foo.bar:baz -Dsonar.projectBaseDir=gaf
-Dsonar.sources=src/main -Dsonar.java.binaries=target/classes
-Dsonar.branch.name=feature/sonarDebug -Dsonar.login=****
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] baz-parent [pom]
[INFO] baz [jar]
[INFO]
[INFO] -------------------< com.foo.bar:baz-parent >--------------------
[INFO] Building baz-parent 2.2.0 [1/2]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- sonar:3.11.0.3922:sonar (default-cli) @ baz-parent ---
...
[INFO] 15:08:59.306 User cache: /Users/USER/.sonar/cache
[INFO] 15:08:59.307 Load/download plugins
[INFO] 15:08:59.307 Load plugins index
[INFO] 15:08:59.425 Load plugins index (done) | time=118ms
[INFO] 15:08:59.527 Load/download plugins (done) | time=220ms
[INFO] 15:08:59.624 Loaded core extensions: developer-scanner
[INFO] 15:08:59.838 Process project properties
[INFO] 15:08:59.843 Process project properties (done) | time=5ms
[INFO] 15:08:59.844 Execute project builders
[INFO] 15:08:59.844 Execute project builders (done) | time=0ms
[INFO] 15:08:59.867 Project key: com.foo.bar:baz
[INFO] 15:08:59.868 Base dir: /Users/USER/code/asd-bar-baz
[INFO] 15:08:59.868 Working dir: /Users/USER/code/asd-bar-baz/target/sonar
[INFO] 15:08:59.872 Load project settings for component key: 'com.foo.bar:baz'
[INFO] 15:09:00.001 Load project settings for component key: 'com.foo.bar:baz' (done) | time=129ms
[INFO] 15:09:00.043 Load project branches
[INFO] 15:09:00.155 Load project branches (done) | time=112ms
[INFO] 15:09:00.155 Load branch configuration
[INFO] 15:09:00.156 Found manual configuration of branch/PR analysis. Skipping automatic configuration.
[INFO] 15:09:00.156 Load branch configuration (done) | time=1ms
[INFO] 15:09:00.217 Load quality profiles
[INFO] 15:09:00.366 Load quality profiles (done) | time=149ms
[INFO] 15:09:00.369 Load active rules
[INFO] 15:09:08.919 Load active rules (done) | time=8550ms
[INFO] 15:09:08.921 Load analysis cache
[INFO] 15:09:09.040 Load analysis cache | time=119ms
[INFO] 15:09:09.064 Branch name: feature/sonarDebug
[INFO] 15:09:09.072 Load project repositories
[INFO] 15:09:09.184 Load project repositories (done) | time=112ms
[INFO] 15:09:09.201 Indexing files...
[INFO] 15:09:09.202 Project configuration:
[INFO] 15:09:09.340 Indexing files of module 'baz'
[INFO] 15:09:09.340 Base dir: /Users/USER/code/asd-bar-baz/gaf
[INFO] 15:09:09.344 Source paths: src/main
[INFO] 15:09:09.344 Test paths: src/test/java
[INFO] 15:09:09.368 Indexing files of module 'baz-parent'
[INFO] 15:09:09.368 Base dir: /Users/USER/code/asd-bar-baz
...
[INFO] 15:09:13.840 Analysis report generated in 175ms, dir size=408.7 kB
[INFO] 15:09:13.903 Analysis report compressed in 63ms, zip size=158.8 kB
[INFO] 15:09:14.258 Analysis report uploaded in 355ms
[INFO] 15:09:14.260 ANALYSIS SUCCESSFUL, you can find the results at: https://sonar.foo.com/sonar/dashboard?id=com.foo.bar%3Abaz&branch=feature%2FsonarDebug
[INFO] 15:09:14.260 Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
[INFO] 15:09:14.260 More about the report processing at https://sonar.foo.com/sonar/api/ce/task?id=AY-H9VjhPyq_0Gd5Ao7i
[INFO] 15:09:14.287 Analysis total time: 14.663 s
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for baz-parent 2.2.0:
[INFO]
[INFO] baz-parent ....................................... SUCCESS [ 17.712 s]
[INFO] baz .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.995 s
[INFO] Finished at: 2024-05-17T15:09:14-04:00