In order to achieve static code analysis, I followed - https://dzone.com/articles/source-code-analysis-testing-technique-using-sonar and when I hit - mvn sonar:sonar
, it resulted into error -
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-
cli) on project testing: Error 500 on http://localhost:9000/api/ce/submit?
`projectKey=org.test:testing&projectName=testing -> [Help 1]
I googled this but nothing helped to resolved. I also tried answers of Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: 3.2:sonar but no luck.
Above error says 500 on http://localhost:9000/api/ce/submit?projectKey=org.test:testing&projectName=testing and when I open this url in browser it gives -
{"errors":[{"msg":"HTTP method POST is required"}]}
Could you please help to understand how this can be resolved?