SonarQube Server 5.1.2, Sonar-Runner 2.4
Multi-moduleProjectで提供されているように、私はプロジェクト構造を次のように作成しました。
Accounts
|
->invoice
|
->src
->receipt
|
->src
->sonar.properties
ファイル:sonar.properties
sonar.projectKey=org.mycompany.acc
sonar.projectName=Account
sonar.projectVersion=1.0
sonar.sources=src
sonar.modules=invoice,receipt
invoice.sonar.projectName=Invoice
receipt.sonar.projectName=Receipt
ソナーランナーで上記の構成で実行すると、エラー「src」フォルダーが「アカウント」ディレクトリにありません。この構成が、そのリンクで使用可能なconfと同じであることを願っています。構成に問題がないかどうかを理解すると、請求書と領収書はアカウントプロジェクトの下にサブプロジェクトとして表示されるため、1つのプロジェクトでマルチモジュール/プロジェクトを実現するには、上記の構成でどのような変更が必要ですか。
エラー
ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: The folder 'src' does not exist for 'org.mycompany.acc' (base directory = C:\Users\xyz\Accounts\.) ERROR: ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with t he -e switch. ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
これを試して:
sonar.projectKey=org.mycompany.acc
sonar.projectName=Account
sonar.projectVersion=1.0
sonar.sources=src # try to remove this by the way if you don't have suchdirectory under root folder of project
sonar.modules=invoice,receipt
invoice.sonar.projectName=Invoice
invoice.sonar.sources=invoice/src
receipt.sonar.projectName=Receipt
receipt.sonar.sources=receipt/src
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加