博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
IDEA无法导入Maven工程
阅读量:6276 次
发布时间:2019-06-22

本文共 21358 字,大约阅读时间需要 71 分钟。

事情源于: 在Mac上pull下来的项目和本地的不一致, 所以在终端重命名了项目,并从github上clone了一份.

这期间IDEA一直是开的,所以重命名时,项目会被自动删除,clone后又出现了.
但是这时IDEA已经无法认识这个clone下来的项目是Maven项目. 于是蛋疼的一幕出现了.

问题出现: 无法导入Maven项目

问题: Import Maven Module选择Maven项目导入后, looking for available profiles

过了一会儿还是在当前窗口,没有任何反应.

首先找到Idea在Mac下的日志位置:

cd ~/Library/Logs/IntelliJIdea14

tail -100f idea.log

s-classworlds-2.4.jar" org.jetbrains.idea.maven.server.RemoteMavenServer2015-07-23 09:52:37,926 [2184356]   INFO - ution.rmi.RemoteProcessSupport - Port/ID: 40461/Maven30ServerImpl623c02e82015-07-23 09:53:53,046 [2259476]   WARN - ution.rmi.RemoteProcessSupport - The cook failed to start due to java.net.ConnectException: Operation timed out2015-07-23 09:54:37,929 [2304359]   WARN - ution.rmi.RemoteProcessSupport - java.rmi.NotBoundException: _DEAD_HAND_2015-07-23 09:54:37,931 [2304361]   WARN - ution.rmi.RemoteProcessSupport - at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:166)2015-07-23 09:54:37,931 [2304361]   WARN - ution.rmi.RemoteProcessSupport - at com.intellij.execution.rmi.RemoteServer.start(RemoteServer.java:88)2015-07-23 09:54:37,932 [2304362]   WARN - ution.rmi.RemoteProcessSupport - at org.jetbrains.idea.maven.server.RemoteMavenServer.main(RemoteMavenServer.java:22)2015-07-23 09:55:08,468 [2334898]   WARN -      #org.jetbrains.idea.maven - Cannot open index /Users/zhengqh/Library/Caches/IntelliJIdea14/Maven/Indices/Index4org.jetbrains.idea.maven.indices.MavenIndexException: Cannot open index /Users/zhengqh/Library/Caches/IntelliJIdea14/Maven/Indices/Index4    at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:182)Caused by: java.lang.RuntimeException: Cannot reconnect.    at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:111)    at org.jetbrains.idea.maven.server.MavenIndexerWrapper.createIndex(MavenIndexerWrapper.java:61)    at org.jetbrains.idea.maven.indices.MavenIndex.createContext(MavenIndex.java:368)    at org.jetbrains.idea.maven.indices.MavenIndex.access$600(MavenIndex.java:48)    at org.jetbrains.idea.maven.indices.MavenIndex$IndexData.
(MavenIndex.java:668) at org.jetbrains.idea.maven.indices.MavenIndex.doOpen(MavenIndex.java:203) at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:179) ... 30 moreCaused by: java.rmi.RemoteException: Cannot start maven service; nested exception is: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Operation timed out

根据这篇帖子, 设置127.0.0.1 localhost仍然不行(其他方法比如设置Maven的-Didea.maven3.use.compat.resolver).

重装不是万能的

只好重装Idea了(覆盖安装仍然不行!).完全卸载IDEA,要删除它的配置文件等.

商业版本(比社区版多了IntelliJ):➜  ~  rm -rf Library/Preferences/IntelliJIdea14➜  ~  rm -rf Library/Caches/IntelliJIdea14➜  ~  rm -rf Library/Application\ Support/IntelliJIdea14➜  ~  rm -rf Library/Logs/IntelliJIdea14社区版本(少了IntelliJ,多了IC):➜  ~  rm -rf Library/Preferences/IdeaIC14/➜  ~  rm -rf Library/Caches/IdeaIC14➜  ~  rm -rf Library/Application\ Support/IdeaIC14➜  ~  rm -rf Library/Logs/IdeaIC14

但是, 重装就一定能解决问题吗? WRONG QUESTION!!!

IPv6问题是怎么出现的

Mac下IDEA的配置文件idea.vmoptions的路径是:

/Applications/IntelliJ IDEA 14 CE.app/Contents/bin

一般软件在mac的HOME是以Contents, 比如JAVA_HOME

/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home

添加IPV4的优先级:

➜  bin  cat idea.vmoptions-Xms128m-Xmx750m-XX:MaxPermSize=350m-XX:ReservedCodeCacheSize=225m-XX:+UseCompressedOops-Djava.net.preferIPv4Stack=true

重启. 重新导入一个Maven项目. 在导入项目的时候查看端口占用情况:

lsof -i -Pidea      2217 zhengqh   29u  IPv4 0x6c3991e519c2f3b1      0t0  TCP localhost:6942 (LISTEN)idea      2217 zhengqh   55u  IPv4 0x6c3991e5197c6551      0t0  TCP localhost:51647->localhost:32252 (SYN_SENT)idea      2217 zhengqh  315u  IPv4 0x6c3991e519c38a31      0t0  TCP localhost:63342 (LISTEN)idea      2217 zhengqh  338u  IPv4 0x6c3991e51980d6f1      0t0  TCP *:51632 (LISTEN)java      2266 zhengqh   35u  IPv6 0x6c3991e513c8cbe1      0t0  TCP *:32252 (LISTEN)java      2266 zhengqh   69u  IPv6 0x6c3991e513c8c6e1      0t0  TCP *:51640 (LISTEN)

GOD! 用的竟然是IPV6. Fuck!

经过漫长的looking for available profiles窗口消失后, 日志打印异常, 这时候再看下端口:

idea      2217 zhengqh   29u  IPv4 0x6c3991e519c2f3b1      0t0  TCP localhost:6942 (LISTEN)idea      2217 zhengqh  315u  IPv4 0x6c3991e519c38a31      0t0  TCP localhost:63342 (LISTEN)idea      2217 zhengqh  338u  IPv4 0x6c3991e51980d6f1      0t0  TCP *:51632 (LISTEN)

添加java的java.net.preferIPv4Stack

看起来跟下面的描述是一样的:

I found from looking at lsof -i -P that the maven remote server was attempting to run on IPv6, and apparently IntelliJ could not speak to it on IPv6. I'm not sure if it used to run on IPv4 and something caused it to start using IPv6, or if it always used IPv6 and a mac update somehow made it stop working.

Anyway, the solution I used was to edit /Applications/IntelliJ IDEA 11.app/Contents/Info.plist and add the java.net.preferIPv4Stack parameter to the java process:

java
Properties
java.net.preferIPv4Stack
true

在一些文章中说Mac下的IDEA不支持1.7以上版本. 但是看idea.log中日志是1.8的. 尽管修改了idea.properties的JVMVersion=1.7还是没作用.

真正起作用的配置文件应该是/Applications/IntelliJ IDEA 14 CE.app/Contents/Info.plist.

我们之前在idea.vmoptions中修改了并没有起作用(重命名为idea64.options也不行). 但是还是不行啊! 修改了JAVA_HOME下的Info.plist也不行.

同时修改JDK的版本为1.7, 这样启动的时候, 就不会使用1.8了. 如果没有更改,尽管JAVA_HOME是1.7.启动时还是1.8

2015-07-23 16:32:47,219 [      0]   INFO -        #com.intellij.idea.Main - --------- IDE STARTED --------2015-07-23 16:32:47,446 [    227]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-141.1532.4, 18 Jun 2015 00:00)2015-07-23 16:32:47,446 [    227]   INFO -        #com.intellij.idea.Main - OS: Mac OS X (10.10.2, x86_64)2015-07-23 16:32:47,447 [    228]   INFO -        #com.intellij.idea.Main - JRE: 1.7.0_79-b15 (Oracle Corporation)2015-07-23 16:32:47,447 [    228]   INFO -        #com.intellij.idea.Main - JVM: 24.79-b02 (Java HotSpot(TM) 64-Bit Server VM)2015-07-23 16:32:47,487 [    268]   INFO -        #com.intellij.idea.Main - JVM Args: -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Xverify:none -Xbootclasspath/a:../lib/boot.jar -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=225m -XX:+UseCompressedOops -Djb.vmOptionsFile=/Applications/IntelliJ IDEA 14 CE.app/Contents/bin/idea.vmoptions -Didea.java.redist=NoJavaDistribution -Didea.home.path=/Applications/IntelliJ IDEA 14 CE.app/Contents -Didea.executable=idea -Didea.paths.selector=IdeaIC14

直接关闭Mac的IPV6

networksetup -setv6off Wi-Finetworksetup -setv6off Ethernetnetworksetup -setv6off Ethernet && networksetup -setv6off Wi-Finetworksetup -setv6automatic Wi-Finetworksetup -setv6automatic Ethernetnetworksetup -setv6automatic Wi-Fi && networksetup -setv6automatic Ethernet

在IDEA的Maven VM Option中添加: -Djava.net.preferIPv4Stack=true -Didea.maven3.use.compat.resolver

查看idea.log启动的Maven参数(导入Maven工程的时候会启动MavenServer),其中添加上了-Djava.net.preferIPv4Stack=true

2015-07-23 16:25:29,367 [ 224402]   INFO - ution.rmi.RemoteProcessSupport - /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/bin/java -d64 -Djava.awt.headless=true -Didea.version==14.1.4 -Xmx512m -Djava.net.preferIPv4Stack=true -Didea.maven3.use.compat.resolver -Didea.maven.embedder.version=3.3.3org.jetbrains.idea.maven.server.RemoteMavenServer

查看进程,现在使用的也是IPv4了.

idea      2801 zhengqh   29u  IPv4 0x6c3991e51a5c4a31      0t0  TCP localhost:6942 (LISTEN)idea      2801 zhengqh   70u  IPv4 0x6c3991e51ac07e21      0t0  TCP *:52163 (LISTEN)idea      2801 zhengqh   74u  IPv4 0x6c3991e519922a31      0t0  TCP localhost:52164->localhost:31579 (SYN_SENT)idea      2801 zhengqh   76u  IPv4 0x6c3991e513c9ae21      0t0  TCP localhost:52165->localhost:31579 (SYN_SENT)idea      2801 zhengqh  318u  IPv4 0x6c3991e51ac06c81      0t0  TCP localhost:63342 (LISTEN)java      2855 zhengqh   33u  IPv4 0x6c3991e51ac08fc1      0t0  TCP *:31579 (LISTEN)java      2855 zhengqh   76u  IPv4 0x6c3991e51ac09891      0t0  TCP *:52162 (LISTEN)

发现一个奇怪的现象, 刚启动idea会指向aws的地址:

idea      2992 zhengqh   29u  IPv4 0x6c3991e51a76a891      0t0  TCP localhost:6942 (LISTEN)idea      2992 zhengqh   75u  IPv4 0x6c3991e51a767c81      0t0  TCP localhost:52266->ec2-54-247-69-204.eu-west-1.compute.amazonaws.com:80 (ESTABLISHED)idea      2992 zhengqh   84u  IPv4 0x6c3991e519fe0161      0t0  TCP localhost:52267->ec2-54-247-69-204.eu-west-1.compute.amazonaws.com:443 (ESTABLISHED)idea      2992 zhengqh  311u  IPv4 0x6c3991e51abec161      0t0  TCP localhost:63342 (LISTEN)

开始导入maven项目时, 那个aws的地址不见了

idea      2992 zhengqh   29u  IPv4 0x6c3991e51a76a891      0t0  TCP localhost:6942 (LISTEN)idea      2992 zhengqh   77u  IPv4 0x6c3991e51ae976f1      0t0  TCP localhost:52273->localhost:54306 (ESTABLISHED)idea      2992 zhengqh   80u  IPv4 0x6c3991e51a767c81      0t0  TCP *:52274 (LISTEN)idea      2992 zhengqh   82u  IPv4 0x6c3991e519fe0161      0t0  TCP localhost:52275->localhost:54306 (ESTABLISHED)idea      2992 zhengqh   83u  IPv4 0x6c3991e51ae91551      0t0  TCP localhost:52276->localhost:52272 (ESTABLISHED)idea      2992 zhengqh   84u  IPv4 0x6c3991e519fe0a31      0t0  TCP localhost:52274->localhost:52277 (ESTABLISHED)idea      2992 zhengqh  311u  IPv4 0x6c3991e51abec161      0t0  TCP localhost:63342 (LISTEN)java      3042 zhengqh   29u  IPv4 0x6c3991e51ae96551      0t0  TCP *:54306 (LISTEN)java      3042 zhengqh   72u  IPv4 0x6c3991e51ae90c81      0t0  TCP *:52272 (LISTEN)java      3042 zhengqh   73u  IPv4 0x6c3991e51a710891      0t0  TCP localhost:54306->localhost:52273 (ESTABLISHED)java      3042 zhengqh   74u  IPv4 0x6c3991e51abeca31      0t0  TCP localhost:54306->localhost:52275 (ESTABLISHED)java      3042 zhengqh   77u  IPv4 0x6c3991e51a769fc1      0t0  TCP localhost:52277->localhost:52274 (ESTABLISHED)java      3042 zhengqh   79u  IPv4 0x6c3991e519fdf891      0t0  TCP localhost:52272->localhost:52276 (ESTABLISHED)

如果没有出现漫长的looking for available profiles``, 而是出现Select Maven Projects to import`, 说明可以正常使用了.

那么最终是怎么解决的呢?

注释掉/etc/hosts的::1

#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

尝试了哪些操作

1.卸载IDEA,并重装,不行!

2.给IDEA_HOME/bin/idea.vmoptions添加-Djava.net.preferIPv4Stack=true,不行!
3.给IDEA_HOME/Info.plist添加配置项-Djava.net.preferIPv4Stack=true,不行!
4.给IDEA的MAVEN.import vm options添加-Djava.net.preferIPv4Stack=true -Didea.maven3.use.compat.resolver,不行!
5.给JAVA_HOME/Info.plist添加配置项-Djava.net.preferIPv4Stack=true,不行!
6.关闭Mac的IPv6,不行!
7.去掉/etc/hosts的::1,成功!

终于,可以愉快地编码了.

Mac下查看进程对应的端口

IDEA导入Maven项目的时候会启动一个Maven进程, 并且在上面的日志中也报错:

java.rmi.RemoteException: Cannot start maven service

下面的两个进程第一个是scala的编译插件:

➜ ~ jps -lm

1034 org.jetbrains.plugins.scala.nailgun.NailgunRunner 50503 a278c8c2-b32d-4404-915e-a8aff234d6671673 org.jetbrains.idea.maven.server.RemoteMavenServer

在上面的SO帖子中, 提到了根据Maven进程查看对应的端口:

我们在线上的Linux机器上实验了Spark的Master进程. 它对应的端口号就是7077. 一共有14个executor子进程.

[qihuang.zheng@spark047215 ~]$ jps  ①26520 Jps[qihuang.zheng@spark047215 ~]$ sudo jps  ②We trust you have received the usual lecture from the local SystemAdministrator. It usually boils down to these three things:    #1) Respect the privacy of others.    #2) Think before you type.    #3) With great power comes great responsibility.[sudo] password for qihuang.zheng:[qihuang.zheng@spark047215 ~]$ sudo -u admin jps  ③5088 Master[qihuang.zheng@spark047215 ~]$ sudo -u admin netstat -anp | grep 5088  ④(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)tcp        0      0 ::ffff:192.168.47.215:7077  :::*                        LISTEN      5088/javatcp        0      0 :::8080                     :::*                        LISTEN      5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.214:57952 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.207:57355 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.208:43176 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.209:34927 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.209:34926 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.207:57353 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.208:43175 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.209:34930 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.208:43178 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.207:57356 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.215:42087 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.209:34929 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.207:57352 ESTABLISHED 5088/javatcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.208:43179 ESTABLISHED 5088/javaunix  2      [ ]         STREAM     CONNECTED     22896  5088/javaunix  2      [ ]         STREAM     CONNECTED     22045  5088/java[qihuang.zheng@spark047215 ~]$ sudo -u admin netstat -an | grep 7077  ⑤tcp        0      0 ::ffff:192.168.47.215:7077  :::*                        LISTENtcp        0      0 ::ffff:192.168.47.215:7077  ::ffff:192.168.47.214:57952 ESTABLISHEDtcp        0      0 ::ffff:192.168.47.215:51479 ::ffff:192.168.47.213:7077  ESTABLISHED....

注意: -an可以接上端口号, 如果-an接的是进程ID, 则没有输出. -anpt接上进程id才有输出.

netstat -an | grep portnetstat -anpt | grep pid

但是但是, netstat -anp | grep pid命令在Mac下直接报错了:

➜  ~  jps -lm2314 sun.tools.jps.Jps -lm2030➜  ~  netstat -anpt|grep 2314netstat: t: unknown or uninstrumented protocol➜  ~  netstat -anp|grep 2314netstat: option requires an argument -- pUsage:  netstat [-AaLlnW] [-f address_family | -p protocol]    netstat [-gilns] [-f address_family]    netstat -i | -I interface [-w wait] [-abdgRt]    netstat -s [-s] [-f address_family | -p protocol] [-w wait]    netstat -i | -I interface -s [-f address_family | -p protocol]    netstat -m [-m]    netstat -r [-Aaln] [-f address_family]    netstat -rs [-s]

mac下的netstat是BSD, 而不是Linux的GNU, so:

➜  ~  lsof -i4 | grep ideaidea      2030 zhengqh   29u  IPv4 0x411285844e52f79d      0t0  TCP localhost:6942 (LISTEN)idea      2030 zhengqh   54u  IPv4 0x4112858448fe67b5      0t0  UDP localhost:54539idea      2030 zhengqh   61u  IPv4 0x4112858447631f25      0t0  UDP *:sdidea      2030 zhengqh   67u  IPv4 0x411285844e51306d      0t0  TCP localhost:51475->ec2-54-247-69-204.eu-west-1.compute.amazonaws.com:http (ESTABLISHED)

附上IDEA连接失败的full log:

2015-07-23 15:34:18,699 [ 295044]   INFO - ution.rmi.RemoteProcessSupport - Port/ID: 36239/Maven30ServerImpl852de2bc2015-07-23 15:35:33,860 [ 370205]   WARN - ution.rmi.RemoteProcessSupport - The cook failed to start due to java.net.ConnectException: Operation timed out2015-07-23 15:36:18,703 [ 415048]   WARN - ution.rmi.RemoteProcessSupport - java.rmi.NotBoundException: _DEAD_HAND_2015-07-23 15:36:18,704 [ 415049]   WARN - ution.rmi.RemoteProcessSupport - at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:166)2015-07-23 15:36:18,705 [ 415050]   WARN - ution.rmi.RemoteProcessSupport - at com.intellij.execution.rmi.RemoteServer.start(RemoteServer.java:88)2015-07-23 15:36:18,705 [ 415050]   WARN - ution.rmi.RemoteProcessSupport - at org.jetbrains.idea.maven.server.RemoteMavenServer.main(RemoteMavenServer.java:22)2015-07-23 15:36:49,033 [ 445378]  ERROR - llij.ide.plugins.PluginManager - Cannot reconnect.java.lang.RuntimeException: Cannot reconnect.    at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)    at org.jetbrains.idea.maven.server.MavenServerManager.applyProfiles(MavenServerManager.java:518)    at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles(MavenProjectReader.java:369)    at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:98)    at org.jetbrains.idea.maven.project.MavenProjectReader.readProject(MavenProjectReader.java:52)    at org.jetbrains.idea.maven.project.MavenProject.read(MavenProject.java:635)    at org.jetbrains.idea.maven.wizards.MavenProjectBuilder.collectProfiles(MavenProjectBuilder.java:197)    at org.jetbrains.idea.maven.wizards.MavenProjectBuilder.access$900(MavenProjectBuilder.java:47)    at org.jetbrains.idea.maven.wizards.MavenProjectBuilder$1.run(MavenProjectBuilder.java:171)    at org.jetbrains.idea.maven.utils.MavenUtil$5.run(MavenUtil.java:407)    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)    at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:367)    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)    at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:617)    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)    at java.util.concurrent.FutureTask.run(FutureTask.java:266)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)    at java.lang.Thread.run(Thread.java:745)    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:    java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:    java.net.ConnectException: Operation timed out    at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:166)    at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:71)    at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)    at org.jetbrains.idea.maven.server.MavenServerManager$9.execute(MavenServerManager.java:521)    at org.jetbrains.idea.maven.server.MavenServerManager$9.execute(MavenServerManager.java:518)    at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)    ... 24 moreCaused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:    java.net.ConnectException: Operation timed out    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342)    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)    at com.intellij.execution.rmi.RemoteProcessSupport$2.compute(RemoteProcessSupport.java:234)    at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:181)    at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:230)    at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:148)    at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:163)    ... 29 moreCaused by: java.net.ConnectException: Operation timed out    at java.net.PlainSocketImpl.socketConnect(Native Method)    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)    at java.net.Socket.connect(Socket.java:589)    at java.net.Socket.connect(Socket.java:538)    at java.net.Socket.
(Socket.java:434) at java.net.Socket.
(Socket.java:211) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ... 38 more2015-07-23 15:36:49,043 [ 445388] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 14.1.4 Build #IC-141.1532.42015-07-23 15:36:49,043 [ 445388] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_452015-07-23 15:36:49,044 [ 445389] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM2015-07-23 15:36:49,044 [ 445389] ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation2015-07-23 15:36:49,044 [ 445389] ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X2015-07-23 15:36:49,044 [ 445389] ERROR - llij.ide.plugins.PluginManager - Last Action: ImportModule

转载地址:http://drgpa.baihongyu.com/

你可能感兴趣的文章
mongoose crud
查看>>
[Head First设计模式]山西面馆中的设计模式——装饰者模式
查看>>
PHP高级编程之守护进程,实现优雅重启
查看>>
PHP字符编码转换类3
查看>>
【2016阿里安全峰会】解读安全人才缺乏困境破解之法【附PDF下载】
查看>>
50条大牛C++编程开发学习建议
查看>>
rsync同步服务配置手记
查看>>
Android下创建一个sqlite数据库
查看>>
数组<=>xml 相互转换
查看>>
MFC单文档应用程序显示图像
查看>>
DT科技评论:第2期
查看>>
poj 2777(线段树的节点更新策略)
查看>>
Swift-EasingAnimation
查看>>
[翻译] BKZoomView
查看>>
C++类设计的一些心得
查看>>
tableVIew删除时的delete按钮被挡住时重写的方法
查看>>
读cookie中文字符乱码问题
查看>>
招募译者翻译并发数据结构
查看>>
普通表转换为分区表
查看>>
Java 容器 & 泛型:三、HashSet,TreeSet 和 LinkedHashSet比较
查看>>