Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mvnw issue #13435

Copy link
Copy link
Open
Open
Copy link
@am0o0

Description

@am0o0
Issue body actions

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

codeql database create  --source-root .   --language=java DB_Codeql

I also try to ran from parent directory such as

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaacknowledgedGitHub staff acknowledges this issueGitHub staff acknowledges this issuebugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.