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

Running jarviz cli under windows does not work due to command invocation #12

Open
jbracker opened this issue Aug 24, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jbracker
Copy link

jbracker commented Aug 24, 2021

Describe the bug
When I try to execute the quickstart guide under windows (via the mingw git bash) the .\jarviz produces the following error:

java.io.IOException: Cannot run program "mvn": CreateProcess error=2, The system cannot find the file specified

To Reproduce
Just follow the quickstart guide under windows.

  • Jarviz version: 0.1.7
  • Java version: 1.8.0

Expected behavior
It should just run and produce the HTML file.

Fix
This error is due to the window enviroment.
I can fix the issue by

  • replacing "mvn ... in com.vrbo.jarviz.service.MavenArtifactDiscoveryService.java with "mvn.cmd ... and then
  • recompiling and installing locally.

This appears to be a known issue with maven:

Maybe you could use maven-embedder or maven-invoker. It would be nice if there were at least a code switch that selects the correct command depending on the operating system.

@lasanthak
Copy link
Member

@jbracker I have not tested this for Windows. If yo can send me a PR with your proposed changed, I am happy to merge it 🙂

@lasanthak lasanthak self-assigned this Feb 8, 2022
@lasanthak lasanthak added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants