cnescatlab / sonar-icode-cnes-plugin

Add capability to analyze Fortran & Shell in SonarQube through i-Code CNES.
GNU General Public License v3.0
19 stars 11 forks source link

ICode Plugin Blocking the analysis of a maven project #76

Open alok347 opened 3 years ago

alok347 commented 3 years ago

Hi Team,

I have recently installed Icode-cnes-plugin on sonarqube-7.9 enerprise edition. This was installed as a part of requirement where one of the user wanted to analyse *.sh files for his project. As a part of testing post any plugin installation, i ran a maven analysis for a sample project. The analysis for this maven project failed with the below error: "_Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project maven--test1: The plugin [icode] does not support Java 1.8.0242: fr/cnes/sonar/plugins/icode/ICodePlugin 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]"

Why is icode-cnes plugin used for a maven project where we have java files?

I ran another analysis for a different project which uses flow plugin and it was successful without any errors. Please look into and kindly advise accordingly.

Note: Java version on the Linux client machine is java-1.8 and java-11. Attached are the screenshots: icode error icode success

begarco commented 3 years ago

Hi @alok347,

Since version 2.0.0 we support Java 11 to follow sonar-scanner evolution.

If sonar-icode-cnes-plugin is trigerred it is because you have a file whose extension matches with the list of supported one.