maven :Cannot start maven service
问题报错信息:maven启动失败
java.lang.RuntimeException: Cannot start maven service
at org.jetbrains.idea.maven.server.MavenServerConnector.connect(MavenServerConnector.java:159)
at org.jetbrains.idea.maven.server.MavenServerConnector.(MavenServerConnector.java:63)
at org.jetbrains.idea.maven.server.MavenServerManager.registerNewConnector(MavenServerManager.java:166)
at org.jetbrains.idea.maven.server.MavenServerManager.getConnector(MavenServerManager.java:154)
at org.jetbrains.idea.maven.server.MavenServerManager$2.create(MavenServerManager.java:396)
org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.doCustomize(MavenEmbedderWrapper.java:93) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.lambda2.create(MavenServerManager.java:385)atorg.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)atorg.jetbrains.idea.maven.server.MavenEmbedderWrapper.doCustomize(MavenEmbedderWrapper.java:93)atorg.jetbrains.idea.maven.server.MavenEmbedderWrapper.lambdacustomizeForResolve$1(MavenEmbedderWrapper.java:66)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.customizeForResolve(MavenEmbedderWrapper.java:65)
at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.customizeForResolve(MavenEmbedderWrapper.java:59)
at org.jetbrains.idea.maven.project.MavenProjectResolver.executeWithEmbedder(MavenProjectResolver.java:285)
at org.jetbrains.idea.maven.project.MavenProjectResolver.resolveFolders(MavenProjectResolver.java:216)
at org.jetbrains.idea.maven.project.MavenProjectsProcessorFoldersResolvingTask.perform(MavenProjectsProcessorFoldersResolvingTask.java:40)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:145)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:36)
解决:
在VM options for importer 中添加参数 -Djava.net.preferIPv4Stack=true