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

Unable to Execute Binary with Maven Path Containing Spaces #753

Open
pandiyan-securin opened this issue Dec 1, 2023 · 3 comments
Open

Comments

@pandiyan-securin
Copy link

pandiyan-securin commented Dec 1, 2023

If Maven installed path contains "spaces" the sbom generation breaks with the follwing message. Please see the below screenshot. Pleas note:We see similar behaviour in linux OS as well.

Environment:

Operating System: Windows

Command:

cdxgen.exe -o sbom.json

Version:

9.9.5

Since there's spacing in the folder's name we are getting this error
'C:\Program' is not recognized as an internal or external command, operable program or batch file.

Screenshot 2023-12-01 at 9 26 23 PM
@prabhu
Copy link
Collaborator

prabhu commented Dec 2, 2023

Nice one. Are you able to find a fix as well? We are short of people who develop and test on Windows.

@pandiyan-securin
Copy link
Author

pandiyan-securin commented Dec 2, 2023

Please find the fix in below PR
#754

@pandiyan-securin
Copy link
Author

Update:
Adding maven path to system environment variable is working fine.
When we add a environmental variable MAVEN_HOME for user specific then it throws above error.

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

2 participants