Sonar-Problem with Jenkins - getFile()Ljava/io/File

Hello *

we upgraded from Sonar 6.7.5 to 8.6 - but without a database-migration. so its basically new and fresh installation. we copied our old jenkins-job and made a new maven-profil for the jobs.

But on every run we get

Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin: java.lang.NoSuchMethodError:;

  • we tried different sonar-maven-plugins (3.5, 3.7. 3.8).
  • we tried different java-versions (openjdk-8u232, jdk1.8.0_271)
  • there is no jsf in the pom-file (hint in google-search)
  • findbugs-plugin is installed in version 4.0.3 (hint in google-search)

has anybody an idea to fix the problem?

Hey Martin,

Thanks for your message and welcome to the community. Could you please provide a more detailed stacktrace and a version of Java analyser you used before and are using now?

One possible idea that came to my mind, do you have any custom rules?