【原创】[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project 工程名: Unable to request: /batch/project?key=xxx:xxxx&preview=false: Read timed o
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project 工程名: Unable to request: /batch/project?key=xxx:xxxx&preview=false: Read timed out -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project 工程名: Unable to request: /batch/project?key=xxx:xxxx&preview=false
原因:
1,hudson项目配置中对sonar指定自己安装的jdk
2,对项目pom.xml 配置设置超时时间
3,对Hudson的内存配置要大些,1G以上