[BUG] Spaces in Windows user path breaks build
Created by: drl-max
Description
Cannot run mvn
openapi-generator version
Any
OpenAPI declaration file content or url
N/A
Command line used for generation
mvn
or mvn test
Steps to reproduce
- Use Windows
- Have a space in your username
- Run
mvn
Related issues/PRs
Not sure if there are other issues that are being caused by this problem
Suggest a fix
Thankfully, I was able to fix my issue by adding double-quotes around the javaagent
value on line 162
of pom.xml
.
From:
-javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit-version}/jmockit-${jmockit-version}.jar
To:
-javaagent:"${settings.localRepository}/org/jmockit/jmockit/${jmockit-version}/jmockit-${jmockit-version}.jar"