Could not find artifact

Tried integrating sonarcloud with a JAVA repo and ran into this issue.

We are using a custom library stored in Artifactory (cloud based).

Sonarcloud is not able to find this file in Artifactory even though it has been clearly specified in the pom.xml. Is there any other location we need to specify?

2021-08-19T13:25:37.0167288Z [ERROR] Failed to execute goal on project XXXXService: Could not resolve dependencies for project com.xxxxxxx.microservices:XXXXService:jar:0.2.3: Could not find artifact com.xxxxxxx.xxxxsumlib:xxxxsumLib:jar:0.3.6 in central (Central Repository:) → [Help 1]
2021-08-19T13:25:37.0171265Z [ERROR]
2021-08-19T13:25:37.0178624Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2021-08-19T13:25:37.0185214Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2021-08-19T13:25:37.0187791Z [ERROR]
2021-08-19T13:25:37.0197503Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2021-08-19T13:25:37.0207751Z [ERROR] [Help 1] DependencyResolutionException - Apache Maven - Apache Software Foundation
2021-08-19T13:25:37.0494811Z ##[error]Process completed with exit code 1.

  • ALM used GitHub
  • Languages of the repository: JAVA

Hi Jabran,

This does not seem to be a problem with SonarCloud. It seems to be related solely to your Maven configuration.