Could not find artifact ** in central (https://repo.maven.apache.org/maven2)

HI Support Team
I am having a problem scanning a maven project using org.sonarsource.scanner.maven:sonar-maven-plugin:sonar using Github Actions. The sonar scanner downloaded the dependency from the central repository (Central Repository:), but there is a private dependency and it was not able to download. could you please let me know how to skip private dependency to prevent downloading from central by the scanner?


GitHub Action Job:

error message:

Hey there.

I expect your job would still fail if you removed the sonar task – which makes this a Maven+GitHub Actions issue… not a SonarCloud one. You might need to look into configuring an alternate dependency repository or something like GitHub packages.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.