--- maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java +++ maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java @@ -279,9 +279,14 @@ for (Map.Entry entry : config.getProperties().entrySet()) { if (!entry.getKey().startsWith(ENV_PREFIX)) { //skip envs, these get filled in later. - toRet.add("-D" + entry.getKey() + "=" + (Utilities.isWindows() ? entry.getValue().replace(quote, escaped) : entry.getValue().replace(quote, "'"))); + String s = "-D" + entry.getKey() + "=" + (Utilities.isWindows() ? entry.getValue().replace(quote, escaped) : entry.getValue().replace(quote, "'")); + if (Utilities.isWindows() && s.endsWith("\"")) { + s = s + " "; } + toRet.add(s); + System.out.println("d=" + s); } + } if (config.isOffline() != null && config.isOffline().booleanValue()) { toRet.add("--offline");//NOI18N