github / github/codeql

CodeQL detected code written in Java but could not process any of it.General issue

オープン
#14,066 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

**Description of the issue**
```
[2023-08-28 16:26:19] [build-stdout] [INFO] dzwn-public-api-parent ............................. SUCCESS [ 0.354 s]
[2023-08-28 16:26:19] [build-stdout] [INFO] dzwn-public-api-app ................................ SUCCESS [01:13 min]
[2023-08-28 16:26:19] [build-stdout] [INFO] dzwn-public-api .................................... SUCCESS [ 0.232 s]
[2023-08-28 16:26:19] [build-stdout] [INFO] ------------------------------------------------------------------------
[2023-08-28 16:26:19] [build-stdout] [INFO] BUILD SUCCESS
[2023-08-28 16:26:19] [build-stdout] [INFO] ------------------------------------------------------------------------
[2023-08-28 16:26:19] [build-stdout] [INFO] Total time: 01:15 min
[2023-08-28 16:26:19] [build-stdout] [INFO] Finished at: 2023-08-28T16:26:19
[2023-08-28 16:26:19] [build-stdout] [INFO] ------------------------------------------------------------------------
Finalizing database at E:\00.running\codeql\databases\dzwn.
CodeQL detected code written in Java but could not process any of it. This can occur if the specified build commands failed to compile or process any code.
- Confirm that there is some source code for the specified language in the project.
- For codebases written in Go, JavaScript, TypeScript, and Python, do not specify
an explicit --command.
- For other languages, the --command must specify a "clean" build which compiles
all the source code files without reusing existing build artefacts.
```

I tried with mvn clean install or clean package, got same error, the project can build successfully without codeql.
`codeql database create E:\00.running\codeql\databases\dzwn --language="java" --command="mvn clean package -DskipTests -Dfile.encoding=UTF-8 --file pom.xml"`

```
codeql version
CodeQL command-line toolchain release 2.14.0.
Copyright (C) 2019-2023 GitHub, Inc.
Unpacked in: E:\00.running\codeql\codeql-win64_v2.14.0\codeql
Analysis results depend critically on separately distributed query and
extractor modules. To list modules that are visible to the toolchain,
use 'codeql resolve qlpacks' and 'codeql resolve languages'.
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。