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

Report generation fails in Vscode running on WSL #723

Open
rgala opened this issue Jul 18, 2024 · 0 comments
Open

Report generation fails in Vscode running on WSL #723

rgala opened this issue Jul 18, 2024 · 0 comments

Comments

@rgala
Copy link

rgala commented Jul 18, 2024

Describe the bug
When running inside WSL, the call to mvn fails with the following error:

[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: /mnt/c/Users/masked/AppData/Local/Programs/Microsoft VS Code/.mvn/settings.xml

To Reproduce
Open any maven project inside WSL and try to open dependency analytics report

Expected behavior
Maybe it should look for settings.xml in ~/.m2 or $M2_HOME/conf directories inside WSL? I managed to workaround the issue by setting maven binary as mvn -s $M2_HOME/conf/settings.xml in extension's settings

VSCode(please complete the following information):

  • OS: Windows
  • VSCode version: 1.91.1
  • Dependency Analytics Version: 0.9.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant