You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a9bb99e
Browse filesBrowse the repository at this point in the historyBrowse files
build: quote the Mockito -javaagent path in surefire argLine
The -javaagent argument added in #1483 is set per module as
-javaagent:${org.mockito:mockito-core:jar} without quotes. Surefire
splits argLine into JVM arguments at unquoted whitespace, so when the
local Maven repository path contains a space (for example a Windows
user profile such as C:\Users\First Last) the forked JVM receives a
truncated agent path and exits before running any test:
Error opening zip file or JAR manifest missing : C:\Users\First
Quote the value in every module that sets it, which is how
jacoco-maven-plugin already passes its own agent argument when the
path contains a space, and note in the parent pom that the quotes must
stay. CI runs on Ubuntu with a space-free repository path, so it could
not catch this.
0 commit comments