Not able to read sonar-project.properties using maven sonar:sonar goal

Hi @Vinod_Kumar2 ,

Welcome to SonarSource community! :sonarsource:

Maven projects cannot use sonar-project.properties. You need to define the properties directly in the pom.xml's <properties></properties> node like so, using the sonar.* pattern similar to the parameters in sonar-project.properties or apply them at the command line like system properties with -Dsonar.*:

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <maven.compiler.target>1.8</maven.compiler.target>
    <maven.compiler.source>1.8</maven.compiler.source>
    <aggregate.report.dir>tests/target/site/jacoco-aggregate/jacoco.xml</aggregate.report.dir>
    <sonar.exclusions>module1/**</sonar.exclusions>
  </properties>