gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 208 forks source link

timeout: Socket closed #292

Open xiaolixi opened 2 years ago

xiaolixi commented 2 years ago

我用下面的两个命令处理一个java项目, 但是sonar:sonar显示timeout: Socket closed -> [Help 1] 想知道这个问题的原因,以及如何解决。sonarqube的版本7.0, sonar-gitlab-plugin版本: 4.0.0

mvn --batch-mode clean org.jacoco:jacoco-maven-plugin:0.8.3:prepare-agent verify org.jacoco:jacoco-maven-plugin:0.8.3:report -Dmaven.test.failure.ignore=true
mvn --batch-mode org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar -Dsonar.host.url=http://sonar.intra.***.com -Dsonar.login=admin -Dsonar.password=admin -Dsonar.preview.excludePlugins=gitlab
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project ***: 
Fail to request http://sonar.intra.***.com/api/ce/submit?projectKey=com.***.api:***&projectName=***: 
timeout: Socket closed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException