Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) -

Downloaded: https://repo.maven.apache.org/maven2/org/sonarsource/scanner/api/sonar-scanner-api/2.16.0.226/sonar-scanner-api-2.16.0.226.jar (611 KB at 7018.7 KB/sec)
[INFO] User cache: /home/jenkins/.sonar/cache
[INFO] SonarQube version: 8.3.1
[INFO] Default locale: “en”, source code encoding: “UTF-8”
[WARNING] SonarScanner will require Java 11 to run starting in SonarQube 8.x
[INFO] Load global settings
[INFO] Load global settings (done) | time=2245ms
[INFO] Server id: 4946665C-AXRKl2nEMPdGvIziQcs3
[INFO] User cache: /home/jenkins/.sonar/cache
[INFO] Load/download plugins
[INFO] Load plugins index
[INFO] Load plugins index (done) | time=595ms
[INFO] Load/download plugins (done) | time=563449ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:06 min
[INFO] Finished at: 2021-02-12T12:47:18+00:00
[INFO] Final Memory: 38M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) on project myproject: Fail to download plugin [java] into /home/jenkins/.sonar/_tmp/fileCache4705603523524130013.tmp: Connection reset

Please help me to fix this issue asap

Hi @rdhara905 ,

Can you post the relevant scanner logs by rerunning your mvn command with -X to get debug-level logs and post them again here?

Joe