void (@NotNull String mavenVersion, @NotNull SimpleJavaParameters params) { if (VersionComparatorUtil.compare(mavenVersion, "3.0.2") < 0) { MavenLog.LOG.warn("Maven version less than 3.0.2 are not correctly displayed in Build Window"); return; } String listenerPath = MavenServerManager.getInstance().getMavenEventListener().getAbsolutePath(); String userExtClassPath = StringUtils.stripToEmpty(params.getVMParametersList().getPropertyValue(MavenServerEmbedder.MAVEN_EXT_CLASS_PATH)); String vmParameter = "-D" + MavenServerEmbedder.MAVEN_EXT_CLASS_PATH + "="; String[] userListeners = userExtClassPath.split(File.pathSeparator); CompositeParameterTargetedValue targetedValue = new CompositeParameterTargetedValue(vmParameter) .addPathPart(listenerPath); for (String path : userListeners) { if (StringUtil.isEmptyOrSpaces(path)) continue; targetedValue = targetedValue.addPathSeparator().addPathPart(path); } params.getVMParametersList().add(targetedValue); }