github / github/codeql

mvnw issue

未關閉
#13,435 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
acknowledged bug Java
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

I just make a simple project that has a mvnw script in its root directory, and then I ran following from root directory:

```bash
codeql database create --source-root . --language=java DB_Codeql
```
I also try to ran from parent directory such as

```bash
codeql database create --source-root myMavenJavaPrj --language=java DB_Codeql
```
I got following error messages:

> [2023-06-13 00:26:44] [build-stdout] [2023-06-13 00:26:44] [autobuild] [ERROR] Error executing command /home/am/1_CodeQL Workspace/Java/myMavenJavaPrj/./mvnw clean package -f "pom.xml" -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true

> [2023-06-13 00:26:44] [build-stdout] com.semmle.util.exception.ResourceError: IOException while executing process with args: [/home/am/1_CodeQL, Workspace/Java/myMavenJavaPrj/./mvnw, clean, package, -f, pom.xml, -B, -V, -e, -Dfindbugs.skip, -Dcheckstyle.skip, -Dpmd.skip=true, -Dspotbugs.skip, -Denforcer.skip, -Dmaven.javadoc.skip, -DskipTests, -Dmaven.test.skip.exec, -Dlicense.skip=true, -Drat.skip=true, -Dspotless.check.skip=true]

> [2023-06-13 00:26:44] [build-stdout] Caused by: java.io.IOException: Cannot run program "/home/am/1_CodeQL" (in directory "."): error=2, No such file or directory

it seems that the problem can be `./mvnw ` too (maybe) which should be just `mvnw` the main issue seems to be the space character that exists in one of my directories name.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。