[INFO] 1 file indexed -> Not Pulling The Full Project

This is a setup with SonarCloud and Gitlab
I think i have a problem with my pom file. The pom file is the only thing importing.

here is the pom, does anything look off?

<project xmlns="http://maven.apache.org/POM/4.0.0"

        <groupId>group id is here</groupId>
  <artifactId>artifact name here</artifactId>

  <sonar.projectKey>project key here</sonar.projectKey>
  <sonar.organization>org here-1</sonar.organization>
  <sonar.login>login key here</sonar.login>


Any support on here?

Thank you

Welcome to the Community!

Do you mean that when the project is analyzed, you only see the pom.xml file when you browse the Code tab on SonarCloud UI? Please clarify!

Please also clarify the following:

  • How do you run the scanner?
  • Are you experiencing this when analyzing the master branch, or is it a pull request analysis or short-living branch analysis?

As a side note, and not related to your issue, but you should not add <sonar.login> in your pom.xml, because such sensitive credentials should not be under version control. There are better ways to pass this, for example using the SONAR_TOKEN environment variable, or -Dsonar.login=... command line argument.

1 Like