Having this error while running SonarQueue Scan on Jekins

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) on project xxxxxxxxxx-pom: Fail to parse the Surefire report: xxxxxxxx feature/target/surefire-reports/TEST-xxxxxxxxxx: Unexpected end of input block in start tag

it threw the above error after I upgraded Spring Boot version from 2.6.7 to 2.7.11. This issue was fixed by upgrading maven-surefire-plugin to version 3.0.0-M5 and jacoco version to 0.8.8

Make sure all the pom files that include maven-surefire-plugin using the same version of surefire dependency, otherwise you might get another error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project xxxxxx Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed: A required class was missing while executing org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test:

Make sure use the same dependency

<dependency>
       <groupId>org.apache.maven.surefire</groupId>
       <artifactId>surefire-api</artifactId>
       <version>3.0.0-M5</version>
</dependency>
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <executions>
     <execution>
      <id> {your id} </id>
      <goals>
       <goal>test</goal>
      </goals>
      <configuration>
      <rules>
</rules>
       <argLine> {your argLine} </argLine>
       <includes>
        <include> {your files} </include>
       </includes>
      </configuration>
     </execution>
    </executions>
<!-- Required test-framework provider -->
<dependencies>
     <dependency>
       <groupId>org.apache.maven.surefire</groupId>
       <artifactId>surefire-api</artifactId>
       <version>3.0.0-M5</version>
     </dependency>
    </dependencies>
   </plugin>

it's not working with version 3.0.0-M5 if you use the below dependency, however, it might work with surefire version 2.2.22

<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>2.19.1</version>

# Spring boot - Managed Dependency Coordinates

https://docs.spring.io/spring-boot/docs/2.7.11/reference/html/dependency-versions.html