diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java index 327bfb5959..d0f47cee0c 100755 --- a/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java +++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java @@ -79,7 +79,7 @@ private List getInitialGoals() { goals.add("-Dsurefire.version=" + surefireVersion); - String jacocoAgent = System.getProperty("jacoco.agent", ""); + String jacocoAgent = System.getProperty("jacoco.agent", "").replace("\"", "").replace("\\\\", "\\"); goals.add("-Djacoco.agent=" + jacocoAgent); goals.add("-nsu");