diff --git a/dinky-admin/src/main/java/org/dinky/utils/MavenUtil.java b/dinky-admin/src/main/java/org/dinky/utils/MavenUtil.java index 52c02aff6f..0ecce60ef8 100644 --- a/dinky-admin/src/main/java/org/dinky/utils/MavenUtil.java +++ b/dinky-admin/src/main/java/org/dinky/utils/MavenUtil.java @@ -168,7 +168,9 @@ public static String getMavenCommandLineByMvn( commandLine.add("-Dclassworlds.conf=" + StrUtil.wrap(mavenHome + "/bin/m2.conf", "\"")); commandLine.add("-s " + settingsPath); commandLine.add("-f " + projectDir); - commandLine.add(StrUtil.wrap(StrUtil.replace(args, "\"", "\\*"), "\"")); + if (StrUtil.isNotBlank(args)) { + commandLine.add(StrUtil.wrap(StrUtil.replace(args, "\"", "\\*"), "\"")); + } commandLine.add(StrUtil.join(" ", goals)); return StrUtil.join(" ", commandLine); }