which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : SonarQube 7.3 community edition Sonar Scanner 4.0.0.1744. Using Java 8
what are you trying to achieve: I am trying to analyze java project in SonarQube. I am using RCP eclipse where I have imported the source files. I have placed the sonar-project.properties file inside the eclipse workspace. I have attached the logs and properties file which I am using.issue_sonarscanner.txt (200.5 KB) sonar-project.txt (538 Bytes)
ERROR: Error during SonarQube Scanner execution
java.lang.NullPointerException
at org.sonarsource.scm.git.GitScmProvider.revisionId(GitScmProvider.java:107)
at org.sonar.scanner.report.MetadataPublisher.addScmInformation(MetadataPublisher.java:126)
at org.sonar.scanner.report.MetadataPublisher.publish(MetadataPublisher.java:98)
at org.sonar.scanner.report.ReportPublisher.generateReportFile(ReportPublisher.java:150)
at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:135)
at org.sonar.scanner.phases.PublishPhaseExecutor.executeOnRoot(PublishPhaseExecutor.java:49)
The first thing to do is to update to a more recent version of SonarQube (7.9 is the latest LTS), including plugins (especially the Git SCM plugin).
Also could you clarify why you are talking about Eclipse workspace? SonarScanner is a command line tool, it is better to run it from the CLI, at the root of your project.