SimpleJavaParameters () { final SimpleJavaParameters params = new SimpleJavaParameters(); params.setJdk(myJdk); params.setWorkingDirectory(PathManager.getBinPath()); params.getVMParametersList().add(Registry.stringValue("maven.dedicated.indexer.vmargs")); if (myDebugPort != null) { params.getVMParametersList() .addParametersString("-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=*:" + myDebugPort); } params.getVMParametersList().add("-Didea.version=" + MavenUtil.getIdeaVersionToPassToMavenProcess()); params.setMainClass("org.jetbrains.idea.maven.server.indexer.MavenServerIndexerMain"); params.getClassPath().add(PathUtil.getJarPathForClass(StringUtilRt.class));//util-rt params.getClassPath().add(PathUtil.getJarPathForClass(NotNull.class));//annotations-java5 params.getClassPath().add(PathUtil.getJarPathForClass(Element.class));//JDOM params.getClassPath().addAllFiles(collectClassPathAndLibsFolder(myDistribution)); return params; }