Failed to import Maven project into IntelliJ IDEA

I am having problems importing any Maven projects into IntelliJ IDEA. I create an empty Maven project as follows:

$ mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false 

Then I try to open the project in IDEA (File> Open Project, then select pom.xml ). For several minutes, the progress bar "Read pom.xml" is displayed, and then simply disappears without opening the project.

Looking at the IDEA log, I see some connection timeout exceptions, for example:

 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/com  mons-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 data11)
     at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles (MavenProjectReader.javahaps69)
     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∗34)
     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.javahaps88)
     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 data14)
     at org.jetbrains.idea.maven.server.MavenServerManager $ 8.execute (MavenServerManager.javahaps11)
     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.javahaps51)
     at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:213)
     at java.net.PlainSocketImpl.connect (PlainSocketImpl.java:200)
     at java.net.SocksSocketImpl.connect (SocksSocketImpl.java data66)
     at java.net.Socket.connect (Socket.java∗29)
     at java.net.Socket.connect (Socket.java:478)
     at java.net.Socket. (Socket.java{75)
     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►95)
     ... 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 data14)
     at org.jetbrains.idea.maven.server.MavenServerManager $ 8.execute (MavenServerManager.javahaps11)
     at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform (RemoteObjectWrapper.java:76)
     at org.jetbrains.idea.maven.server.MavenServerManager.applyProfiles (MavenServerManager.java data11)
     at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles (MavenProjectReader.javahaps69)
     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∗34)
     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.javahaps88)
     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.javahaps51)
     at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:213)
     at java.net.PlainSocketImpl.connect (PlainSocketImpl.java:200)
     at java.net.SocksSocketImpl.connect (SocksSocketImpl.java data66)
     at java.net.Socket.connect (Socket.java∗29)
     at java.net.Socket.connect (Socket.java:478)
     at java.net.Socket. (Socket.java{75)
     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►95)
     ... 41 more

I use the latest versions of IDEA (11.1.3) and Maven (3.0.4). Any ideas what I'm doing wrong?

+21
intellij-idea maven
03 Oct
source share
11 answers

This is a common problem with network and address resolution. In some cases, localhost may not be allowed, and this requires

 127.0.0.1 localhost 

in the /etc/hosts file. Also make sure there are no other IP addresses mapped to localhost .

For more details, see my comment on YouTrack related issue.

+64
03 Oct '12 at 6:28
source share

To fix this problem for me in 14.1.3 Ultimate I had to add

-Didea.maven3.use.compat.resolver

for VM settings for the importer under Settings> Build, Run, Deploy> Build Tools> Import

for the error at https://youtrack.jetbrains.com/issue/IDEA-140208 .

+6
Jun 02 '15 at 20:08
source share

I had a similar problem with a groovy script with IDEA 12. The problem was the same as stated in @CrazyCoder. The solution was based on the fact that @kevinmrohr made it a little easier to find and configure.

To solve the problem, I edited the idea.exe.vmoptions file located in the bin directory (idea64.exe.vmoptions if you are using the 64-bit version) and added -Djava.net.preferIPv4Stack = true.

Restarting IDEA and everything worked without any problems.

+4
Jan 17 '13 at 9:05
source share

I am using the community version 2017.2.1 and I had the same problem, I had to change the JDM version of the maven importer to the correct version (from 1.6 to 1.8) for it to work.

enter image description here

+3
Aug 10 '17 at 15:20
source share

I had the same problem. I don’t know why this happened, I only know how I fixed it.

I found, looking at lsof -i -P, that the remote maven server was trying to run on IPv6, and apparently IntelliJ could not talk to it over IPv6. I'm not sure if it was used to run on IPv4, and something made him start using IPv6, or if he always used IPv6, and updating for Mac somehow made it stop working.

In any case, I used to edit / Applications / IntelliJ IDEA 11.app/Contents/Info.plist and add java.net.preferIPv4Stack to the java process:

 <key>java</key> <dict> <key>Properties</key> <dict> <key>java.net.preferIPv4Stack</key> <string>true</string> </dict> </dict> 

I am very sorry that I cannot give more information on why this happened from the very beginning.

+2
Oct 23 '12 at 15:07
source share

Find out what process the port holds on your computer. On Ubuntu Linux, I ran the following commands:

ps -ef | grep idea

It is noted that there is a Java process executing the class org.jetbrains.idea.maven.server.RemoteMavenServer

I noticed pid 2772 and executed

netstat -anp | grep 2772

I noticed that pid 2772 listening on port 6942

I connected to this port:

 telnet localhost 6942 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. /home/noahlz/.IdeaIC11/config/ home/noahlz/.IdeaIC11/system 

So, the Maven component used by IntelliJ works as a separate server process, which IntelliJ talks about the socket. You will need to determine why IntelliJ cannot reach this server port on your computer, that is, what other process is held on that port and / or does not send a response back to IntelliJ

Please note that the port number on your computer may vary.

+1
03 Oct '12 at 3:27
source share

I ran into the same problem. Unfortunately, none of the above suggestions helped me. In fact, when I start the gradle project from IntelliJ, I got the error message “ Connection disconnected: connect ” in the event log. I tried various parameters, such as setting -Djava.net.preferIPv4Addresses = true, fixing Windows, installing ISA client, restarting the machine, dial-up level of java-language, disabled firewall. Nothing helped.

Finally, providing proxy information in IntelliJ Idea does the trick for me.

enter image description here

Specify the same proxy data as in the Internet properties for the IntelliJ proxy server settings. enter image description here

+1
Dec 24 '13 at 9:45
source share

Look for any (recently installed) applications that might prevent RemoteMavenServer from answering Intellij calls correctly. In my case, it turned out to be an online reporting x3watch : x3watch . After removal Intellij began to work normally.

+1
Jun 06 '15 at 19:58
source share

Had the same problem, however the following answer fixed my problem: Maven project will not compile after upgrading to Intellij 13.1 of 12

The problem itself arose after I upgraded to IntelliJ 13.1.4, before this patch everything worked fine / as intended.

0
Aug 29 '14 at 7:08
source share

I had a similar problem on

MAC OS X

What I've done:

  • deactivated FIREWALL
  • set proxy in intellij (as described in this section)
  • set ipstack flag

nothing to solve the problem ...

what helped

  • running intellij with Java 1.6 and NOT java 1.8 (defined in / Applications / IntelliJ \ IDEA \ 14.app/Contents/Info.plist)

weird

0
Nov 20 '14 at 8:25
source share

I had the same issue with Linux Mint. I tried everything, but nothing helped. Turned off my etc / hosts file, was corrupted, and restored it to work. Another solution here: https://www.digitalocean.com/community/questions/how-to-restore-etc-hosts-on-ubuntu-14-04

0
Jul 13 '16 at 12:24
source share



All Articles