Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvnw wrapper file location must be on $PATH, executable does not look in local directory first #35

Open
ctcampbell opened this issue Apr 25, 2023 · 0 comments

Comments

@ctcampbell
Copy link

ctcampbell commented Apr 25, 2023

When using the executable I needed to run export PATH=./:$PATH to get it to find the committed mvnw file in the repo, otherwise I get an error:

~/Downloads/executables/maven-dependency-tree-submission-macos -t xxxxxx -r od-ctcampbell/demo-jenkins-1 -b refs/head/main -s $(git rev-parse HEAD)
::group::depgraph-maven-plugin:reactor
::warning::Error encountered executing maven: Unable to locate executable file: mvnw. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.


::endgroup::
::error::Error: Failed to successfully generate reactor results with Maven, exit code: -1
Failed to generate a dependency snapshot, check logs for more details, Error: A problem was encountered generating dependency files, please check execution logs for details; Failed to successfully generate reactor results with Maven, exit code: -1
Error: A problem was encountered generating dependency files, please check execution logs for details; Failed to successfully generate reactor results with Maven, exit code: -1
    at /snapshot/maven-dependency-submission-action/lib/src/snapshot-generator.js:115:19
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/maven-dependency-submission-action/lib/src/snapshot-generator.js:28:58)
A problem was encountered generating dependency files, please check execution logs for details; Failed to successfully generate reactor results with Maven, exit code: -1
Usage: maven-dependency-tree-submission [options]

Options:
  -V, --version                             output the version number
  -t, --token <token>                       GitHub access token
  -r --repository <repository>              GitHub repository, owner/repo_name format
  -b --branch-ref <ref>                     GitHub repository branch reference, e.g. refs/heads/main
  -s --sha <commitSha>                      GitHub repository commit SHA
  -d --directory <maven-project-directory>  the directory containing the Maven POM file (default: ".")
  --settings-file <settings-file>           path to the Maven settings file
  --ignore-maven-wrapper                    ingore Maven wrappers, if present, and use Maven from the PATH
  --maven-args <maven-args>                 additional arguments to pass to Maven
  --github-api-url <url>                    GitHub API URL (default: "https://api.github.com")
  -j --job-name <jobName>                   Optional name for the activity creating and submitting the graph (default: "maven-dependency-submission-cli")
  -i --run-id <jobName>                     Optional Run ID number for the activity that is providing the graph
  -h, --help                                display help for command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant