JavaRules error when trying to scan C code

scanner
sonarqube

(Eliezer Ramm) #1

Using SQ 6.7.2.37468 if I try to scan a multi-language project that has both C and C++ code I get the following error

> 19:38:33.093 INFO: Sensor JavaSquidSensor [java]
> 19:38:33.368 INFO: Configured Java source version (sonar.java.source): none
> 19:38:33.392 DEBUG: com.sonar.plugins.security.api.JavaRules is not found, no security rules added to Sonar way java profile: com.sonar.plugins.security.api.JavaRules
> 19:38:33.393 INFO: JavaClasspath initialization
> 19:38:33.412 INFO: ------------------------------------------------------------------------
> 19:38:33.412 INFO: EXECUTION FAILURE
> 19:38:33.412 INFO: ------------------------------------------------------------------------
> 19:38:33.412 INFO: Total time: 5.887s
> 19:38:33.454 INFO: Final Memory: 61M/210M
> 19:38:33.454 INFO: ------------------------------------------------------------------------
> 19:38:33.454 ERROR: Error during SonarQube Scanner execution
> org.sonar.java.AnalysisException: Please provide compiled classes of your project with sonar.java.binaries property

If I am not trying to scan any java code why do I get this error ? Also how can I fix this error ?


What is the alternative to the sonar.language property in the current version of sonarqube?
What is the alternative to the sonar.language property in the current version of sonarqube?
(Colin Mueller) #2

Eliezer,

Can you include some more complete scanner logs? I’d also be curious to know the plugins installed on your instance and their version.

Colin


(Eliezer Ramm) #3
19:38:27.550 INFO: Scanner configuration file: /usr/local/src/sonar/sonar-scanner-3.0.3.778/conf/sonar-scanner.properties
19:38:27.560 INFO: Project root configuration file: NONE
19:38:27.590 INFO: SonarQube Scanner 3.0.3.778
19:38:27.590 INFO: Java 10.0.2 Oracle Corporation (64-bit)
19:38:27.590 INFO: Linux 4.15.0-36-generic amd64
19:38:27.739 DEBUG: keyStore is :
19:38:27.739 DEBUG: keyStore type is : pkcs12
19:38:27.739 DEBUG: keyStore provider is :
19:38:27.739 DEBUG: init keystore
19:38:27.739 DEBUG: init keymanager of type SunX509
19:38:27.862 INFO: User cache: /root/.sonar/cache
19:38:27.862 DEBUG: Extract sonar-scanner-api-batch in temp...
19:38:27.865 DEBUG: Get bootstrap index...
19:38:27.866 DEBUG: Download: http://ildocker-demo1:9005/batch/index
19:38:28.050 DEBUG: Get bootstrap completed
19:38:28.050 DEBUG: Create isolated classloader...
19:38:28.065 DEBUG: Start temp cleaning...
19:38:28.068 DEBUG: Temp cleaning done
19:38:28.068 DEBUG: Execution getVersion
19:38:28.078 DEBUG: Execution start
19:38:28.288 INFO: Publish mode
19:38:28.395 INFO: Load global settings
19:38:28.436 DEBUG: GET 200 http://ildocker-demo1:9005/api/settings/values.protobuf | time=33ms
19:38:28.449 INFO: Load global settings (done) | time=54ms
19:38:28.455 INFO: Server id: AWI9XeTZSLWoBrE4SA9k
19:38:28.464 INFO: User cache: /root/.sonar/cache
19:38:28.676 INFO: Load plugins index
19:38:28.683 DEBUG: GET 200 http://ildocker-demo1:9005/api/plugins/installed | time=7ms
19:38:28.717 INFO: Load plugins index (done) | time=41ms
19:38:28.718 DEBUG: Load plugins
19:38:28.920 DEBUG: Load plugins (done) | time=202ms
19:38:29.130 DEBUG: Plugins:
19:38:29.130 DEBUG:   * SonarCFamily 5.1.0.10083 (cpp)
19:38:29.131 DEBUG:   * Code Smells 4.0.0 (smells)
19:38:29.131 DEBUG:   * SonarTSQL 1.2.0.2539 (tsql)
19:38:29.131 DEBUG:   * Branch 1.0.0.507 (branch)
19:38:29.131 DEBUG:   * SonarPLSQL 3.2.0.1753 (plsql)
19:38:29.132 DEBUG:   * License 3.3.0.1341 (license)
19:38:29.132 DEBUG:   * Findbugs 3.8.0 (findbugs)
19:38:29.132 DEBUG:   * SonarJava 5.8.0.15699 (java)
19:38:29.133 DEBUG:   * LDAP 2.2.0.608 (ldap)
19:38:29.133 DEBUG:   * Git 1.4.0.1037 (scmgit)
19:38:29.133 DEBUG:   * Developer 1.0.0.240 (developer)
19:38:29.133 DEBUG:   * SonarTS 1.6.0.2388 (typescript)
19:38:29.134 DEBUG:   * SonarVB 4.2.0.248 (vbnet)
19:38:29.134 DEBUG:   * SonarABAP 3.5.0.1080 (abap)
19:38:29.134 DEBUG:   * SonarSwift 3.1.0.2067 (swift)
19:38:29.147 DEBUG: Execution getVersion
19:38:29.148 INFO: SonarQube server 6.7.2
19:38:29.148 INFO: Default locale: "en_IL", source code encoding: "UTF-8" (analysis is platform dependent)
19:38:29.149 DEBUG: Work directory: /usr/local/src/vcc-11.3/.scannerwork
19:38:29.149 DEBUG: Execution getVersion
19:38:29.150 DEBUG: Execution execute
19:38:29.856 INFO: Process project properties
19:38:29.864 DEBUG: Process project properties (done) | time=8ms
19:38:30.115 INFO: Load branch configuration
19:38:30.116 INFO: Load branch configuration (done) | time=2ms
19:38:30.116 INFO: Load project repositories
19:38:30.133 DEBUG: GET 200 http://ildocker-demo1:9005/batch/project.protobuf?key=vcc-11.3 | time=16ms
19:38:30.265 INFO: Load project repositories (done) | time=149ms
19:38:30.357 DEBUG: Available languages:
19:38:30.357 DEBUG:   * C => "c"
19:38:30.358 DEBUG:   * C++ => "cpp"
19:38:30.358 DEBUG:   * Objective-C => "objc"
19:38:30.358 DEBUG:   * T-SQL => "tsql"
19:38:30.358 DEBUG:   * PL/SQL => "plsql"
19:38:30.359 DEBUG:   * JSP => "jsp"
19:38:30.359 DEBUG:   * Java => "java"
19:38:30.359 DEBUG:   * TypeScript => "ts"
19:38:30.359 DEBUG:   * Visual Basic .NET => "vbnet"
19:38:30.359 DEBUG:   * ABAP => "abap"
19:38:30.360 DEBUG:   * Swift => "swift"
19:38:30.369 INFO: Load quality profiles
19:38:30.389 DEBUG: GET 200 http://ildocker-demo1:9005/api/qualityprofiles/search.protobuf?projectKey=vcc-11.3 | time=19ms
19:38:30.399 INFO: Load quality profiles (done) | time=30ms
19:38:30.414 INFO: Load active rules
19:38:30.503 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBfSfaNmCUwYNZMC&p=1&ps=500 | time=88ms
19:38:30.606 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBjIfaNmCUwYNZRT&p=1&ps=500 | time=47ms
19:38:30.624 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWK5FAg3aEZXihauie3k&p=1&ps=500 | time=10ms
19:38:30.633 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWaGJGHliXDym6uqkCWE&p=1&ps=500 | time=7ms
19:38:30.649 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBk9faNmCUwYNZUK&p=1&ps=500 | time=15ms
19:38:30.664 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBmkfaNmCUwYNZVi&p=1&ps=500 | time=12ms
19:38:30.683 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBn-faNmCUwYNZXD&p=1&ps=500 | time=16ms
19:38:30.721 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBvgfaNmCUwYNZfK&p=1&ps=500 | time=33ms
19:38:30.758 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBsjfaNmCUwYNZbb&p=1&ps=500 | time=31ms
19:38:30.779 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWJrcBqWfaNmCUwYNZYz&p=1&ps=500 | time=16ms
19:38:30.803 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWI9Xg04SLWoBrE4SBwd&p=1&ps=500 | time=21ms
19:38:30.817 INFO: Load active rules (done) | time=403ms
19:38:30.819 INFO: Load metrics repository
19:38:30.826 DEBUG: GET 200 http://ildocker-demo1:9005/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 | time=7ms
19:38:30.844 INFO: Load metrics repository (done) | time=25ms
19:38:30.879 INFO: Project key: vcc-11.3
19:38:30.879 DEBUG: Start recursive analysis of project modules
19:38:30.880 INFO: -------------  Scan vcc-11.3
19:38:31.099 INFO: Base dir: /usr/local/src/vcc-11.3
19:38:31.099 INFO: Working dir: /usr/local/src/vcc-11.3/.scannerwork
19:38:31.101 INFO: Source paths: .
19:38:31.101 INFO: Source encoding: UTF-8, default locale: en_IL
19:38:31.161 INFO: Load server rules
19:38:31.190 DEBUG: GET 200 http://ildocker-demo1:9005/api/rules/list.protobuf | time=29ms
19:38:31.205 INFO: Load server rules (done) | time=44ms
19:38:31.355 DEBUG: Declared extensions of language C were converted to sonar.lang.patterns.c : **/*.c,**/*.h
19:38:31.356 DEBUG: Declared extensions of language C++ were converted to sonar.lang.patterns.cpp : **/*.cc,**/*.cpp,**/*.cxx,**/*.c++,**/*.hh,**/*.hpp,**/*.hxx,**/*.h++,**/*.ipp
19:38:31.356 DEBUG: Declared extensions of language Objective-C were converted to sonar.lang.patterns.objc : **/*.m
19:38:31.356 DEBUG: Declared extensions of language T-SQL were converted to sonar.lang.patterns.tsql : **/*.tsql
19:38:31.356 DEBUG: Declared extensions of language PL/SQL were converted to sonar.lang.patterns.plsql : **/*.sql,**/*.pks,**/*.pkb
19:38:31.357 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp
19:38:31.357 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
19:38:31.357 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
19:38:31.358 DEBUG: Declared extensions of language Visual Basic .NET were converted to sonar.lang.patterns.vbnet : **/*.vb
19:38:31.358 DEBUG: Declared extensions of language ABAP were converted to sonar.lang.patterns.abap : **/*.abap,**/*.ab4,**/*.flow
19:38:31.358 DEBUG: Declared extensions of language Swift were converted to sonar.lang.patterns.swift : **/*.swift
19:38:31.364 DEBUG: Initializers :


19:38:32.051 INFO: Quality profile for cpp: Sonar way
19:38:32.051 INFO: Quality profile for java: java owasp top 10
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/root/.sonar/cache/0a1398f56a992f1d9a0f68f102811703/sonar-tsql-plugin-1.2.0.2539.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
19:38:33.033 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
19:38:33.034 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
19:38:33.039 DEBUG: 'gcov' skipped because one of the required properties is missing
19:38:33.039 DEBUG: 'llvm-cov' skipped because one of the required properties is missing
19:38:33.039 DEBUG: 'cppunit' skipped because one of the required properties is missing
19:38:33.039 DEBUG: 'VisualStudioCoverage' skipped because one of the required properties is missing
19:38:33.039 DEBUG: 'bullseye' skipped because one of the required properties is missing
19:38:33.046 DEBUG: 'T-SQL Sensor' skipped because there is no related file in current project
19:38:33.047 DEBUG: 'PL/SQL Sensor' skipped because there is no related file in current project
19:38:33.048 DEBUG: 'jsp' skipped because there is no related file in current project
19:38:33.050 DEBUG: 'Import of Checkstyle issues' skipped because one of the required properties is missing
19:38:33.051 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
19:38:33.052 DEBUG: 'Import of SpotBugs issues' skipped because one of the required properties is missing
19:38:33.055 DEBUG: 'SonarTS' skipped because there is no related file in current project
19:38:33.056 DEBUG: 'SonarTS Coverage' skipped because there is no related file in current project
19:38:33.057 DEBUG: 'VB.NET' skipped because there is no related file in current project
19:38:33.058 DEBUG: 'VB.NET Properties' skipped because there is no related file in current project
19:38:33.060 DEBUG: 'Visual Basic .NET Tests Coverage Report Import' skipped because there is no related file in current project
19:38:33.061 DEBUG: '[Deprecated] Visual Basic .NET Integration Tests Coverage Report Import' skipped because there is no related file in current project
19:38:33.062 DEBUG: 'Visual Basic .NET Unit Test Results Import' skipped because there is no related file in current project
19:38:33.063 DEBUG: 'AbapSquidSensor' skipped because there is no related file in current project
19:38:33.064 DEBUG: 'Swift Squid Sensor' skipped because there is no related file in current project
19:38:33.069 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
19:38:33.069 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
19:38:33.070 DEBUG: 'gcov' skipped because one of the required properties is missing
19:38:33.070 DEBUG: 'llvm-cov' skipped because one of the required properties is missing
19:38:33.070 DEBUG: 'cppunit' skipped because one of the required properties is missing
19:38:33.070 DEBUG: 'VisualStudioCoverage' skipped because one of the required properties is missing
19:38:33.070 DEBUG: 'bullseye' skipped because one of the required properties is missing
19:38:33.073 DEBUG: 'T-SQL Sensor' skipped because there is no related file in current project
19:38:33.074 DEBUG: 'PL/SQL Sensor' skipped because there is no related file in current project
19:38:33.075 DEBUG: 'jsp' skipped because there is no related file in current project
19:38:33.077 DEBUG: 'Import of Checkstyle issues' skipped because one of the required properties is missing
19:38:33.077 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
19:38:33.078 DEBUG: 'Import of SpotBugs issues' skipped because one of the required properties is missing
19:38:33.080 DEBUG: 'SonarTS' skipped because there is no related file in current project
19:38:33.082 DEBUG: 'SonarTS Coverage' skipped because there is no related file in current project
19:38:33.083 DEBUG: 'VB.NET' skipped because there is no related file in current project
19:38:33.084 DEBUG: 'VB.NET Properties' skipped because there is no related file in current project
19:38:33.085 DEBUG: 'Visual Basic .NET Tests Coverage Report Import' skipped because there is no related file in current project
19:38:33.086 DEBUG: '[Deprecated] Visual Basic .NET Integration Tests Coverage Report Import' skipped because there is no related file in current project
19:38:33.087 DEBUG: 'Visual Basic .NET Unit Test Results Import' skipped because there is no related file in current project
19:38:33.088 DEBUG: 'AbapSquidSensor' skipped because there is no related file in current project
19:38:33.089 DEBUG: 'Swift Squid Sensor' skipped because there is no related file in current project
19:38:33.092 DEBUG: Sensors : JavaSquidSensor -> SmellMeasuresSensor -> FindBugs Sensor -> SurefireSensor -> JaCoCoSensor -> SonarJavaXmlFileSensor -> CFamily -> Zero Coverage Sensor -> CPD Block Indexer
19:38:33.093 INFO: Sensor JavaSquidSensor [java]
19:38:33.368 INFO: Configured Java source version (sonar.java.source): none
19:38:33.392 DEBUG: com.sonar.plugins.security.api.JavaRules is not found, no security rules added to Sonar way java profile: com.sonar.plugins.security.api.JavaRules
19:38:33.393 INFO: JavaClasspath initialization
19:38:33.412 INFO: ------------------------------------------------------------------------
19:38:33.412 INFO: EXECUTION FAILURE
19:38:33.412 INFO: ------------------------------------------------------------------------
19:38:33.412 INFO: Total time: 5.887s
19:38:33.454 INFO: Final Memory: 61M/210M
19:38:33.454 INFO: ------------------------------------------------------------------------
19:38:33.454 ERROR: Error during SonarQube Scanner execution
org.sonar.java.AnalysisException: Please provide compiled classes of your project with sonar.java.binaries property
        at org.sonar.java.JavaClasspath.init(JavaClasspath.java:57)
        at org.sonar.java.AbstractJavaClasspath.getElements(AbstractJavaClasspath.java:280)
        at org.sonar.java.SonarComponents.getJavaClasspath(SonarComponents.java:190)
        at org.sonar.java.JavaSquid.<init>(JavaSquid.java:85)
        at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:92)
        at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
        at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88)
        at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82)
        at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68)
        at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:88)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:180)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:288)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:283)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:261)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
        at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)
        at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
        at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121)
        at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
        at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
        at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
19:38:33.456 DEBUG: Execution getVersion
19:38:33.456 DEBUG: Execution stop

(Colin Mueller) #4

I would selectively target the two custom plugins you have installed on your server and remove them to see if your scan succeeds in their absence (Code Smells and Findbugs, both of which I believe are focused on Java)

Colin


(Eliezer Ramm) #5

done but I am getting the same error

13:00:46.719 DEBUG: com.sonar.plugins.security.api.JavaRules is not found, no security rules added to Sonar way java profile: com.sonar.plugins.security.api.JavaRules
13:00:46.719 INFO: JavaClasspath initialization
13:00:46.729 INFO: ------------------------------------------------------------------------
13:00:46.729 INFO: EXECUTION FAILURE
13:00:46.729 INFO: ------------------------------------------------------------------------
13:00:46.729 INFO: Total time: 4.550s
13:00:46.764 INFO: Final Memory: 61M/207M13:00:46.764 ERROR: Error during SonarQube Scanner execution

13:00:46.764 INFO: ------------------------------------------------------------------------
org.sonar.java.AnalysisException: Please provide compiled classes of your project with sonar.java.binaries property

(Dinesh Bolkensteyn) #6

Your project seems to contain both C and Java code. As per SonarJava’s documentation, you must pass additional parameters to analyze Java projects if you do not use the Maven or Gradle scanners.

Alternatively, you could also exclude Java files from the analysis by following the Narrowing the focus guidelines.


(Eliezer Ramm) #7

so to exclude *.java and *.jar files I do this ?

sonar.exclusions=*.java,*.jar

please correct my syntax if I am mistaken. Directories may include both c and java files so I don’t want exclude on a directory level


(Dinesh Bolkensteyn) #8
sonar.exclusions=**/*.java

Should do the job. Please keep us posted about how this goes.


(Eliezer Ramm) #9

yes that did the trick.

sonar.exclusions=**/*.java,**/*.jar

case closed :smiley: