Reputation: 382
I have build maven project using java 8 and doing all the pipeline and authentication configuration with Bit-bucket n Maven, but still getting this issue.
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project Project name
also getting this error message next line of error:
The version of Java (1.8.0_121) you have used to run this analysis is deprecated and we will stop accepting it soon.
As Java 8 has been deprecated we are unable to get/view Sonar overview widget for our services.
Upvotes: 1
Views: 9560
Reputation: 1019
As you have mentioned java 8 is been deprecated so You can force the analysis with Java 8 temporarily by setting the property
'sonar.scanner.force-deprecated-java-version' to 'true'.
in POM file like below
<properties>
<java.version>1.8</java.version>
<sonar.scanner.force-deprecated-java-version>true</sonar.scanner.force-deprecated-java-version>
</properties>
hope this will work.
You can find more information here: sonar up-comings.
cheers.
Upvotes: 3