Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 7.9.4 LTS Enterprise version
- what are you trying to achieve scanning
- what have you tried so far to achieve this – scanning issues while using Jenkins
The requirement is to exclude a plugin from picking up while scanning, the project team mentioned they don’t need MULESOFT PLUGIN and they need to exclude them on their pom.xml.
But we were not able to provide him a example piece of code which can exclude this MULESOFT plugin from their scan.
Their project needs Java 1.8 compiler and they cannot move to java11 in neartime. Below is the error, if you need more information, let me know we can provide it.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:22.214.171.1248:sonar (default-cli) on project XXXX: The plugin [mulesoft] does not support Java 1.8.0_252: com/ultimatesoftware/sonar/plugins/mulesoft/MulesoftPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles: