我在将任何Maven项目导入IntelliJ IDEA时遇到问题。我创建了一个空的Maven项目,如下所示:
$ mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
然后我尝试在IDEA中打开项目(文件>打开项目,然后选择pom.xml
)。一个表示“阅读pom.xml”的进度框显示几分钟,然后在没有打开项目的情况下消失。
查看IDEA日志,我看到一些连接超时异常,如下所示:
2012-10-03 11:55:38,502 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 2012-10-03 11:55:38,512 [ 10] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-117.798, 25 Jul 2012 00:00) 2012-10-03 11:55:38,512 [ 10] INFO - #com.intellij.idea.Main - JRE: 1.6.0_25-b06 (Sun Microsystems Inc.) 2012-10-03 11:55:38,512 [ 10] INFO - #com.intellij.idea.Main - JVM: 20.0-b11 (Sun Microsystems Inc.) 2012-10-03 11:55:38,539 [ 37] INFO - .intellij.idea.IdeaApplication - WM detected: Compiz 2012-10-03 11:55:40,328 [ 1826] INFO - llij.ide.plugins.PluginManager - 28 plugins initialized in 1613 ms 2012-10-03 11:55:40,328 [ 1826] INFO - llij.ide.plugins.PluginManager - Loaded plugins:IDEA CORE, Properties Support, Ant Support (1.0), XPathView + XSLT Support (4), IntelliLang (8.0), Copyright (8.1), Groovy (9.0), Maven Integration, Scala (0.5.981), Git Integration (8.1), Task Management (1.0), GitHub, hg4idea (10.0), CVS Integration (11), Intention Power Pack (1.0), I18n for Java, TestNG-J (8.0), GenerateToString (5.0), Commander (1.0.0), Plugin DevKit (1.0), UI Designer, Gradle, Eclipse Integration (3.0), Inspection Gadgets (1.0), JUnit (1.0), Subversion Integration (1.1), XSLT-Debugger (1.4), Android Support (10.0) 2012-10-03 11:55:40,755 [ 2253] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; mmap=true 2012-10-03 11:55:40,799 [ 2297] INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: /usr/lib/idea-IC-117.798/bin/fsnotifier64 2012-10-03 11:55:40,800 [ 2298] INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational. 2012-10-03 11:55:41,181 [ 2679] INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/ui.lnf.xml file is null 2012-10-03 11:55:41,181 [ 2679] INFO - .impl.stores.XmlElementStorage - Document was not loaded for $APP_CONFIG$/ui.lnf.xml 2012-10-03 11:55:41,824 [ 3322] INFO - TestNG Runner - Create TestNG Template Configuration 2012-10-03 11:55:41,833 [ 3331] INFO - TestNG Runner - Create TestNG Template Configuration 2012-10-03 11:55:41,935 [ 3433] INFO - ellij.project.impl.ProjectImpl - 23 project components initialized in 693 ms 2012-10-03 11:55:41,936 [ 3434] INFO - .module.impl.ModuleManagerImpl - 0 modules loaded in 0 ms 2012-10-03 11:55:41,948 [ 3446] INFO - .intellij.ide.XmlRpcServerImpl - XmlRpc server listening at /127.0.0.1:63342 2012-10-03 11:55:42,252 [ 3750] INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/macros.xml file is null 2012-10-03 11:55:42,252 [ 3750] INFO - .impl.stores.XmlElementStorage - Document was not loaded for $APP_CONFIG$/macros.xml 2012-10-03 11:55:42,256 [ 3754] INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/quicklists.xml file is null 2012-10-03 11:55:42,256 [ 3754] INFO - .impl.stores.XmlElementStorage - Document was not loaded for $APP_CONFIG$/quicklists.xml 2012-10-03 11:55:42,330 [ 3828] INFO - pl.stores.ApplicationStoreImpl - 79 application components initialized in 1910 ms 2012-10-03 11:55:42,345 [ 3843] INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/customization.xml file is null 2012-10-03 11:55:42,345 [ 3843] INFO - .impl.stores.XmlElementStorage - Document was not loaded for $APP_CONFIG$/customization.xml 2012-10-03 11:55:42,499 [ 3997] INFO - ij.openapi.wm.impl.IdeRootPane - App initialization took 4825 ms 2012-10-03 11:55:50,842 [ 12340] INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/plainTextFiles.xml file is null 2012-10-03 11:55:50,842 [ 12340] INFO - .impl.stores.XmlElementStorage - Document was not loaded for $APP_CONFIG$/plainTextFiles.xml 2012-10-03 11:55:55,348 [ 16846] INFO - ution.rmi.RemoteProcessSupport - /usr/lib/jvm/jdk1.6.0_25/jre/bin/java -Djava.awt.headless=true -Xmx512m -Dfile.encoding=UTF-8 -classpath /usr/lib/idea-IC-117.798/lib/resources_en.jar:/usr/lib/idea-IC-117.798/lib/annotations.jar:/usr/lib/idea-IC-117.798/lib/util.jar:/usr/lib/idea-IC-117.798/lib/trove4j.jar:/usr/lib/idea-IC-117.798/lib/jdom.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/lucene-core-2.4.1.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/activation-1.1.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/maven-2.2.1-uber.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/maven2-server-impl.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/jaxb-impl.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/jaxb-api.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/maven-embedder-1.1-SNAPSHOT.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/classworlds-1.1.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/resources_en.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/commons-beanutils.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/mercury-artifact-1.0-alpha-6.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/maven-server-api.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/maven-dependency-tree-1.2.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/archetype-common-2.0-alpha-4-SNAPSHOT.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/plexus-utils-1.5.5.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/wadl-core.jar:/usr/lib/idea-IC-117.798/plugins/maven/lib/nexus-indexer-1.2.3.jar org.jetbrains.idea.maven.server.RemoteMavenServer 2012-10-03 11:55:55,483 [ 16981] INFO - ution.rmi.RemoteProcessSupport - Port/ID: 18011/Maven2ServerImpl9407569f 2012-10-03 11:56:58,898 [ 80396] WARN - ution.rmi.RemoteProcessSupport - The cook failed to start due to java.net.ConnectException: Connection timed out 2012-10-03 11:57:55,483 [ 136981] WARN - ution.rmi.RemoteProcessSupport - java.rmi.NotBoundException: _DEAD_HAND_ 2012-10-03 11:57:55,484 [ 136982] WARN - ution.rmi.RemoteProcessSupport - at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106) 2012-10-03 11:57:55,484 [ 136982] WARN - ution.rmi.RemoteProcessSupport - at com.intellij.execution.rmi.RemoteServer.start(RemoteServer.java:73) 2012-10-03 11:57:55,484 [ 136982] WARN - ution.rmi.RemoteProcessSupport - at org.jetbrains.idea.maven.server.RemoteMavenServer.main(RemoteMavenServer.java:22) 2012-10-03 11:58:01,749 [ 143247] ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(65,116),absolute(64,140),button=1,modifiers=Button1,clickCount=1] on frame0 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:311) 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:405) at org.jetbrains.idea.maven.project.MavenProjectsTree.doUpdate(MavenProjectsTree.java:534) at org.jetbrains.idea.maven.project.MavenProjectsTree.doAdd(MavenProjectsTree.java:481) at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:442) at org.jetbrains.idea.maven.project.MavenProjectsTree.updateAll(MavenProjectsTree.java:413) at org.jetbrains.idea.maven.wizards.MavenProjectBuilder.readMavenProjectTree(MavenProjectBuilder.java:198) at org.jetbrains.idea.maven.wizards.MavenProjectBuilder.access$800(MavenProjectBuilder.java:44) at org.jetbrains.idea.maven.wizards.MavenProjectBuilder$3.run(MavenProjectBuilder.java:179) at org.jetbrains.idea.maven.utils.MavenUtil$8.run(MavenUtil.java:388) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:469) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:288) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:218) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169) at com.intellij.openapi.application.impl.ApplicationImpl$8$1.run(ApplicationImpl.java:641) at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145) 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: Connection timed out at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:120) 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$8.execute(MavenServerManager.java:314) at org.jetbrains.idea.maven.server.MavenServerManager$8.execute(MavenServerManager.java:311) at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76) ... 27 more Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection timed out at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.intellij.execution.rmi.RemoteProcessSupport$2.compute(RemoteProcessSupport.java:215) at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:122) at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:212) at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:133) at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:117) ... 32 more Caused by: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.(Socket.java:375) at java.net.Socket.(Socket.java:189) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) ... 41 more 2012-10-03 11:58:01,752 [ 143250] ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 11.1.3 Build #IC-117.798 2012-10-03 11:58:01,752 [ 143250] ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_25 2012-10-03 11:58:01,752 [ 143250] ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) 64-Bit Server VM 2012-10-03 11:58:01,752 [ 143250] ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc. 2012-10-03 11:58:01,752 [ 143250] ERROR - com.intellij.ide.IdeEventQueue - OS: Linux 2012-10-03 11:58:01,752 [ 143250] ERROR - com.intellij.ide.IdeEventQueue - Last Action: OpenProject 2012-10-03 11:58:01,752 [ 143250] ERROR - com.intellij.ide.IdeEventQueue - Original exception: java.rmi.RemoteException: Cannot start maven service; nested exception is: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection timed out at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:120) 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$8.execute(MavenServerManager.java:314) at org.jetbrains.idea.maven.server.MavenServerManager$8.execute(MavenServerManager.java:311) at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76) at org.jetbrains.idea.maven.server.MavenServerManager.applyProfiles(MavenServerManager.java:311) 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:405) at org.jetbrains.idea.maven.project.MavenProjectsTree.doUpdate(MavenProjectsTree.java:534) at org.jetbrains.idea.maven.project.MavenProjectsTree.doAdd(MavenProjectsTree.java:481) at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:442) at org.jetbrains.idea.maven.project.MavenProjectsTree.updateAll(MavenProjectsTree.java:413) at org.jetbrains.idea.maven.wizards.MavenProjectBuilder.readMavenProjectTree(MavenProjectBuilder.java:198) at org.jetbrains.idea.maven.wizards.MavenProjectBuilder.access$800(MavenProjectBuilder.java:44) at org.jetbrains.idea.maven.wizards.MavenProjectBuilder$3.run(MavenProjectBuilder.java:179) at org.jetbrains.idea.maven.utils.MavenUtil$8.run(MavenUtil.java:388) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:469) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:288) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:218) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169) at com.intellij.openapi.application.impl.ApplicationImpl$8$1.run(ApplicationImpl.java:641) at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145) Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection timed out at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.intellij.execution.rmi.RemoteProcessSupport$2.compute(RemoteProcessSupport.java:215) at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:122) at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:212) at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:133) at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:117) ... 32 more Caused by: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.(Socket.java:375) at java.net.Socket.(Socket.java:189) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) ... 41 more
我正在使用最新版本的IDEA(11.1.3)和Maven(3.0.4)。我有什么想法吗?
答案 0 :(得分:70)
这是与网络和地址解析相关的常见问题。在某些情况下localhost
可能无法解决,而且需要
127.0.0.1 localhost
在/etc/hosts
文件中。还要确保没有其他IP地址映射到localhost
。
答案 1 :(得分:10)
答案 2 :(得分:8)
要在14.1.3 Ultimate中为我纠正此问题,我必须添加
-Didea.maven3.use.compat.resolver
到“首选项”下的导入器的VM选项>构建,执行,部署>构建工具>导入
答案 3 :(得分:4)
我有一个类似的问题,用IDEA 12运行groovy脚本。问题与@CrazyCoder说的相同。解决方案基于@kevinmrohr所做的更容易找到和设置。
要解决此问题,我编辑了位于bin目录中的 idea.exe.vmoptions ( idea64.exe.vmoptions ,如果您使用的是64位版本)并添加了< EM> -Djava.net.preferIPv4Stack =真
重新启动IDEA,一切正常,没有任何问题。
答案 4 :(得分:2)
我有同样的问题。我不知道是什么导致它开始发生,我只知道我是如何修复它的。
我通过查看lsof -i -P发现maven远程服务器试图在IPv6上运行,显然IntelliJ无法在IPv6上对它说话。我不确定它是否曾经在IPv4上运行,有些东西导致它开始使用IPv6,或者它总是使用IPv6和mac更新以某种方式使它停止工作。
无论如何,我使用的解决方案是编辑/ Applications / IntelliJ IDEA 11.app/Contents/Info.plist并将java.net.preferIPv4Stack参数添加到java进程:
<key>java</key>
<dict>
<key>Properties</key>
<dict>
<key>java.net.preferIPv4Stack</key>
<string>true</string>
</dict>
</dict>
我真的希望我能提供更多关于为什么会发生这种情况的信息。
答案 5 :(得分:1)
找出您的计算机上正在保存该端口的进程。在Ubuntu Linux上,我执行了以下命令:
ps -ef | grep idea
注意到有一个运行类org.jetbrains.idea.maven.server.RemoteMavenServer
我注意到了2772
的pid并执行了
netstat -anp | grep 2772
我注意到pid 2772
正在侦听端口6942
我打算去那个港口:
telnet localhost 6942
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
/home/noahlz/.IdeaIC11/config/ home/noahlz/.IdeaIC11/system
因此IntelliJ使用的Maven组件作为一个独特的服务器进程运行,IntelliJ通过套接字说话。您需要确定为什么IntelliJ无法访问您计算机上的服务器端口,即其他进程保留在该端口上和/或没有将响应发送回IntelliJ
请注意,您计算机上的端口号可能不同。
答案 6 :(得分:1)
我遇到了同样的问题。对不起,上述建议均不适合我。事实上,当我从IntelliJ启动gradle项目时,我在事件日志中收到错误“连接被拒绝:连接”。我尝试了各种选项,如设置-Djava.net.preferIPv4Addresses = true,windows hot fix,安装ISA Client,重启机器,切换java lang级别,禁用防火墙。什么都没有帮助。
最后在IntelliJ Idea中提供代理信息对我来说很有用。
为IntelliJ代理设置提供与Internet属性相同的代理信息。
答案 7 :(得分:1)
查找可能阻止RemoteMavenServer正确响应Intellij调用的任何(最近安装的)应用程序。就我而言,它原来是一个在线问责软件:x3watch
。卸载后,Intellij开始正常工作。
答案 8 :(得分:1)
在我的情况下,以下行设置为〜/ .profile
export _JAVA_OPTIONS =“-Djava.net.preferIPv6Addresses = true
我刚刚删除了线路并重新启动。之后工作正常
答案 9 :(得分:0)
有同样的问题,但以下答案解决了我的问题: Maven project won't compile after upgrade to Intellij 13.1 from 12
问题本身在我更新到IntelliJ 13.1.4后发生,该补丁之前的所有工作正常/按预期工作。
答案 10 :(得分:0)
我有类似的问题
MAC OS X
我做了什么:没有解决问题...
帮助什么
奇怪
答案 11 :(得分:0)
我在Linux Mint上遇到了同样的问题。尝试了一切,但没有任何帮助。原来我的etc / hosts文件已损坏并恢复工作。另一种解决方案是:https://www.digitalocean.com/community/questions/how-to-restore-etc-hosts-on-ubuntu-14-04