2017-03-24 8 views
2

をスキャンしようとして失敗します.1つのプロジェクトの解析プロセスが失敗します。エラーメッセージはUnable to read the source file : '.../ajax.gif' with the charset : 'UTF-8'. Input length = 1です。 file .../ajax.gifを実行すると、期待通りにGIF image data, version 89a, 220 x 19が得られます。 6.3にアップグレードする前に、すべてうまくいきました。ここで sonarQube 6.3は、sonarqube 6.2から6.3に正常にアップグレードした後、バイナリファイル

は完全な出力です:

CLIコマンド:mvn clean sonar:sonar

結果:

[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building pp-scratch 1.1.17-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- sonar-maven-plugin:3.2:sonar (default-cli) @ pp-scratch --- 
[INFO] User cache: /home/thomas/.sonar/cache 
[INFO] Load global settings 
[INFO] Load global settings (done) | time=235ms 
[INFO] User cache: /home/thomas/.sonar/cache 
[INFO] Load plugins index 
[INFO] Load plugins index (done) | time=9ms 
[INFO] Plugin [l10nde] defines 'l10nen' as base plugin. This metadata can be removed from manifest of l10n plugins since version 5.2. 
[INFO] SonarQube version: 6.3.0 
[INFO] Default locale: "en_US", source code encoding: "UTF-8" 
[INFO] Process project properties 
[INFO] Load project repositories 
[INFO] Load project repositories (done) | time=124ms 
[INFO] Load quality profiles 
[INFO] Load quality profiles (done) | time=85ms 
[INFO] Load active rules 
[INFO] Load active rules (done) | time=539ms 
[INFO] Load metrics repository 
[INFO] Load metrics repository (done) | time=103ms 
[INFO] Publish mode 
[INFO] Project key: de.tln:pp-scratch 
[INFO] ------------- Scan pp-scratch 
[INFO] Excluded sources for coverage: 
[INFO] **/*DTO.java 
[INFO] Load server rules 
[INFO] Load server rules (done) | time=97ms 
[INFO] Initializer GenericCoverageSensor 
[INFO] Initializer GenericCoverageSensor (done) | time=0ms 
[INFO] Base dir: /home/thomas/workspace/aexit/pp-scratch 
[INFO] Working dir: /home/thomas/workspace/aexit/pp-scratch/target/sonar 
[INFO] Source paths: src/main/webapp, pom.xml, src/main/java 
[INFO] Test paths: src/test/java 
[INFO] Source encoding: UTF-8, default locale: en_US 
[INFO] Index files 
[INFO] Excluded sources: 
[INFO] **/*.min.css 
[INFO] **/*.min.js 
[INFO] src/main/webapp/resources/bootstrap/** 
[INFO] **/entity/*.java 
[INFO] 210 files indexed 
[INFO] 7 files ignored because of inclusion/exclusion patterns 
[INFO] Quality profile for css: Sonar way 
[INFO] Quality profile for java: TLN 
[INFO] Quality profile for js: Sonar way 
[INFO] Quality profile for web: Sonar way 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 5.309 s 
[INFO] Finished at: 2017-03-24T08:18:22+01:00 
[INFO] Final Memory: 61M/514M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project pp-scratch: Unable to read the source file : '/home/thomas/workspace/aexit/pp-scratch/src/main/webapp/resources/app/ajaxloadingbar.gif' with the charset : 'UTF-8'. Input length = 1 -> [Help 1] 
[ERROR] 
[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] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1 
+1

このプロジェクトにはどのような除外設定が適用されますか? (https://jira.sonarsource.com/browse/SONAR-8995) –

+0

@ G.Ann-SonarSourceTeamそれです、ありがとうございます。 –

答えて

3

あなたは、以下のバグに直面している:それはSonarQube 6.3で修正されます

SONAR-8995 .1。

関連する問題