I am having a hard time configuring sonarcloud and maven sonar-maven-plugin

I was configured with sonar 7.X from docker image and had no issue doing scans and analysis for a java project based on maven.

I am trying to do the same with sonarcloud but i am keeping having alternate error messages

You’re not authorized to run analysis. Please contact the project administrator

When it passes this i get after a round that seems to run this super exciting message
[ ERROR ] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project shopizer: null : MojoExecutionException: NullPointerException -> [Help 1]

I have a multi module maven project
sonar plugin is configured in parent project

		<plugin>
		<groupId>org.sonarsource.scanner.maven</groupId>
		<artifactId>sonar-maven-plugin</artifactId>
		<version>3.3.0.603</version>
		<executions>
		<execution>
		<phase>verify</phase>
		<goals>
		<goal>sonar</goal>
		</goals>
		</execution>
		</executions>
		</plugin>

here is the command that i run at the root of the project
mvnw sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=shopizer-ecommerce -Dsonar.login=…xyz… -Dsonar.inclusions=src/main/java/**

I have also tried to put sonar-project.properties at the root of the project

Root project information

sonar.projectKey=shopizer

sonar.projectName=shopizer

#List of module identifiers

sonar.modules=sm-shop, sm-core
sm-shop.sonar.projectName=shop
sm-shop.sonar.sources=src
sm-shop.sonar.java.binaries=target/classes
sm-core.sonar.projectName=core
sm-core.sonar.sources=src
sm-core.sonar.java.binaries=target/classes

Any input would be much appreciated

When i enable debug and -X switch i have a slight precision

Caused by : java.lang.NullPointerException

at org.sonar.scanner.report.ComponentsPublisher.convert ( ComponentsPublisher.java:89 )
at org.sonar.scanner.report.ComponentsPublisher.publish ( ComponentsPublisher.java:54 )
at org.sonar.scanner.report.ReportPublisher.generateReportFile ( ReportPublisher.java:163 )

Hello @shopizer-ecommerce,

Could you share the complete debug logs of the scanner? You can do so in a private message if you prefer.

Do you set these properties manually? The maven plugin should resolve these properties automatically from the modules pom.xml.