IntelliJ 新项目 - Maven 原型列表为空
IntelliJ new project - maven archetype list empty
创建 IntelliJ → 新项目 → Maven 时,原型列表是空白的,无论经过多长时间都不会填充。 "Loading archetype list..." 继续但似乎没有做太多。有什么建议吗?
来自 mvn -v
的信息:
Apache Maven 3.2.5 (NON-CANONICAL_2014-12-25T17:13:28_root; 2014-12-25T05:13:28-08:00)
Maven home: /opt/maven
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.17.6-1-arch", arch: "amd64", family: "unix"
IntelliJ IDEA 专业版 14.0.2
切换 Java 运行时间
我遇到了同样的问题。我的解决方案是,在 Settings → Maven → Importing → JDK 中为 Importer 更改 JRE。从 "Internal JRE" 切换到 "External JRE"。
[ 70091] ERROR - plication.impl.ApplicationImpl - java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.RuntimeException: java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:134)
at com.intellij.execution.rmi.RemoteUtil.access0(RemoteUtil.java:36)
at com.intellij.execution.rmi.RemoteUtil.compute(RemoteUtil.java:105)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:181)
at com.intellij.execution.rmi.RemoteUtil.invoke(RemoteUtil.java:102)
at com.sun.proxy.$Proxy101.getArchetypes(Unknown Source)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:168)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesManager.java:308)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.run(MavenArchetypesStep.java:239)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:405)
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.run(PooledThreadExecutor.java:56)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOfRange(Arrays.java:3664)
at java.lang.String.<init>(String.java:201)
at org.apache.lucene.index.TermBuffer.toTerm(TermBuffer.java:122)
at org.apache.lucene.index.SegmentTermEnum.term(SegmentTermEnum.java:167)
at org.apache.lucene.index.SegmentMergeInfo.next(SegmentMergeInfo.java:66)
at org.apache.lucene.index.MultiSegmentReader$MultiTermEnum.next(MultiSegmentReader.java:494)
at org.apache.lucene.search.FieldCacheImpl.createValue(FieldCacheImpl.java:389)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:351)
at org.apache.lucene.search.FieldSortedHitQueue.comparatorString(FieldSortedHitQueue.java:415)
at org.apache.lucene.search.FieldSortedHitQueue.createValue(FieldSortedHitQueue.java:206)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:167)
at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:55)
at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:121)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113)
at org.apache.lucene.search.Hits.<init>(Hits.java:90)
at org.apache.lucene.search.Searcher.search(Searcher.java:61)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlat(DefaultSearchEngine.java:179)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:99)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:77)
at org.sonatype.nexus.index.DefaultNexusIndexer.searchFlat(DefaultNexusIndexer.java:386)
at org.sonatype.nexus.index.archetype.NexusArchetypeDataSource.getArchetypeCatalog(NexusArchetypeDataSource.java:55)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.doCollectArchetypes(Maven3ServerIndexerImpl.java:324)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.getArchetypes(Maven3ServerIndexerImpl.java:317)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport.run(Transport.java:178)
[ 70094] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 14.0.2 Build #IU-139.659.2
[ 70094] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_25
[ 70094] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 70094] ERROR - plication.impl.ApplicationImpl - Vendor: Oracle Corporation
[ 70094] ERROR - plication.impl.ApplicationImpl - OS: Linux
[ 70094] ERROR - plication.impl.ApplicationImpl - Last Action: CloseProject
^C
saschajostock@euerEhren:~/lib/Programme/idea-IU-139.225.3/bin$ ./idea.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
DEBUG - [ORACLE-SQL] undefined element type: alter_external_table_clauses
DEBUG - [ORACLE-SQL] undefined element type: records_per_block_clause
DEBUG - [ORACLE-SQL] undefined element type: ref_attribute
DEBUG - [ORACLE-SQL] undefined element type: physical_properties
DEBUG - [ORACLE-SQL] undefined element type: redo_logfile_spec
DEBUG - [ORACLE-SQL] undefined element type: row_movement_clause
DEBUG - [ORACLE-SQL] undefined element type: hash_subpartition_quantity
DEBUG - [ORACLE-SQL] undefined element type: primary_operator
DEBUG - [ORACLE-SQL] undefined element type: xml_type_column_properties
DEBUG - [ORACLE-SQL] undefined element type: parameter_types
DEBUG - [ORACLE-SQL] undefined element type: partition_value
DEBUG - [ORACLE-SQL] undefined element type: lob_partition_storage
DEBUG - [ORACLE-SQL] undefined element type: create_cluster
DEBUG - [ORACLE-SQL] undefined element type: index_attributes
DEBUG - [ORACLE-SQL] undefined element type: parameter_type
DEBUG - [ORACLE-SQL] undefined element type: return_type
DEBUG - [ORACLE-SQL] undefined element type: scn_value
DEBUG - [ORACLE-SQL] undefined element type: move_table_clause
DEBUG - [ORACLE-SQL] undefined element type: data_item
DEBUG - [ORACLE-SQL] undefined element type: create_index_statement
[ 12601] WARN - org.jetbrains.io.BuiltInServer - Die Adresse wird bereits verwendet
java.net.BindException: Die Adresse wird bereits verwendet
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.Net.bind(Net.java:428)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:512)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1121)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeBindNow(ChannelHandlerInvokerUtil.java:108)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeBind(DefaultChannelHandlerInvoker.java:214)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:233)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:943)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:212)
at io.netty.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:340)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:343)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:356)
at io.netty.util.concurrent.SingleThreadEventExecutor.run(SingleThreadEventExecutor.java:834)
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.run(PooledThreadExecutor.java:56)
[ 13050] WARN - .ExternalResourceManagerExImpl - Cannot find standard resource. filename:/META-INF/tapestry_5_0_0.xsd class=class com.intellij.javaee.ResourceRegistrarImpl, classLoader:null
[ 135618] ERROR - plication.impl.ApplicationImpl - java.lang.OutOfMemoryError: Java heap space
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:134)
at com.intellij.execution.rmi.RemoteUtil.access0(RemoteUtil.java:36)
at com.intellij.execution.rmi.RemoteUtil.compute(RemoteUtil.java:105)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:181)
at com.intellij.execution.rmi.RemoteUtil.invoke(RemoteUtil.java:102)
at com.sun.proxy.$Proxy103.getArchetypes(Unknown Source)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:168)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesManager.java:308)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.run(MavenArchetypesStep.java:239)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:405)
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.run(PooledThreadExecutor.java:56)
Caused by: java.lang.OutOfMemoryError: Java heap space
at org.apache.lucene.search.FieldCacheImpl.createValue(FieldCacheImpl.java:402)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:351)
at org.apache.lucene.search.FieldSortedHitQueue.comparatorString(FieldSortedHitQueue.java:415)
at org.apache.lucene.search.FieldSortedHitQueue.createValue(FieldSortedHitQueue.java:206)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:167)
at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:55)
at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:121)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113)
at org.apache.lucene.search.Hits.<init>(Hits.java:90)
at org.apache.lucene.search.Searcher.search(Searcher.java:61)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlat(DefaultSearchEngine.java:179)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:99)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:77)
at org.sonatype.nexus.index.DefaultNexusIndexer.searchFlat(DefaultNexusIndexer.java:386)
at org.sonatype.nexus.index.archetype.NexusArchetypeDataSource.getArchetypeCatalog(NexusArchetypeDataSource.java:55)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.doCollectArchetypes(Maven3ServerIndexerImpl.java:324)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.getArchetypes(Maven3ServerIndexerImpl.java:317)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport.run(Transport.java:178)
at sun.rmi.transport.Transport.run(Transport.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:174)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671)
[ 135620] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 14.0.2 Build #IU-139.659.2
[ 135620] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_25
[ 135620] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 135620] ERROR - plication.impl.ApplicationImpl - Vendor: Oracle Corporation
[ 135620] ERROR - plication.impl.ApplicationImpl - OS: Linux
[ 135620] ERROR - plication.impl.ApplicationImpl - Last Action: CloseProject
更改设置->Maven->导入->JDK 以选择导入器对我不起作用。但是清除设置中的“-Xmx512m”值->Maven->Importing->importer 的 VM 选项。清除该值并保存设置后,新模块的 Maven 原型列表立即加载到 IntelliJ IDEA Professional 14.0.3 中。
Maven 的 JRE 运行 内存不足。
在 Build → Build Tools → Maven → Importing 下,将 VM options for importer 设置为 -Xmx1024m
(默认值-Xmx512m
太低了)。
就我而言,我已经解决了这个问题。
'$JAVA_HOME/jre/bin/java' 文件没有 运行.
的权限
(http://1004lucifer.blogspot.kr/2015/08/intellij-loading-archetype-list.html)
查看~/Library/Logs/IntelliJIdea13/下的idea.log后,发现抛出异常 Caused by: java.rmi.ConnectException: Connection refused to host: localhost;嵌套异常是:java.net.ConnectException:连接被拒绝。根本原因是我的 /etc/hosts 文件不知何故被损坏,本地主机 ip 被更新为一些垃圾值。将本地主机映射更改为 127.0.0.1 后,我的问题得到解决
最大内存对我也有用,IntelliJ Community Edition 2016.2.4
以下是设置的屏幕截图,如果有帮助的话:
我遇到过类似的问题。查看 IDE 日志后,我发现它无法连接本地主机。它显示以下异常:
2016-11-30 13:47:54,193 [10832638] ERROR - plication.impl.ApplicationImpl - Cannot reconnect.
java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWrapper.java:175)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesManager.java:310)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.lambda$updateArchetypesList(MavenArchetypesStep.java:237)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:309)
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)
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 refused: connect
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:173)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:78)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:527)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:523)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:178)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:175)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 9 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
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.lambda$acquire(RemoteProcessSupport.java:258)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:226)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:256)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:162)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:170)
... 17 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
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.<init>(Socket.java:434)
at java.net.Socket.<init>(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)
... 26 more
我找到了下面 link 中提到的对我有用的解决方案
Unable to import Maven project into IntelliJ IDEA
File -> Settings -> 在搜索框中输入Maven,Maven Importing 的子菜单有这两个选项。 IntelliJ 2016.3.2
对我有用的设置是
的组合
1. "JDK for importer" to External(my Installed JDK) and
2. "VM option for importer" to a higher value -Xmx1536m
但正如 Sascha Jostock 所说的那样至关重要
重新启动后,我需要将 "VM option for importer" 增加到更高的值 -Xmx1792m。我觉得很蠢!!
您可以尝试更改导入程序的 VM 选项:-Xmx2048M 设置 -> Maven -> 导入。在 IntelliJ IDEA 2016.3.4、JRE 1.8 上测试。0_111
帮助进行了两项更改:
- 清空字段: 设置(Ctrl+Alt+S) -> 构建、执行、部署 -> 构建工具 -> Maven -> 导入 -> 导入器的 VM 选项(只需将此字段设为空)
- 更改选项 设置 (Ctrl+Alt+S) -> 构建、执行、部署 -> 构建工具 -> Maven -> 导入 -> JDK for importer to "1.8 (java version "1.8......等等)
创建 IntelliJ → 新项目 → Maven 时,原型列表是空白的,无论经过多长时间都不会填充。 "Loading archetype list..." 继续但似乎没有做太多。有什么建议吗?
来自 mvn -v
的信息:
Apache Maven 3.2.5 (NON-CANONICAL_2014-12-25T17:13:28_root; 2014-12-25T05:13:28-08:00)
Maven home: /opt/maven
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.17.6-1-arch", arch: "amd64", family: "unix"
IntelliJ IDEA 专业版 14.0.2
切换 Java 运行时间
我遇到了同样的问题。我的解决方案是,在 Settings → Maven → Importing → JDK 中为 Importer 更改 JRE。从 "Internal JRE" 切换到 "External JRE"。
[ 70091] ERROR - plication.impl.ApplicationImpl - java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.RuntimeException: java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:134)
at com.intellij.execution.rmi.RemoteUtil.access0(RemoteUtil.java:36)
at com.intellij.execution.rmi.RemoteUtil.compute(RemoteUtil.java:105)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:181)
at com.intellij.execution.rmi.RemoteUtil.invoke(RemoteUtil.java:102)
at com.sun.proxy.$Proxy101.getArchetypes(Unknown Source)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:168)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesManager.java:308)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.run(MavenArchetypesStep.java:239)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:405)
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.run(PooledThreadExecutor.java:56)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOfRange(Arrays.java:3664)
at java.lang.String.<init>(String.java:201)
at org.apache.lucene.index.TermBuffer.toTerm(TermBuffer.java:122)
at org.apache.lucene.index.SegmentTermEnum.term(SegmentTermEnum.java:167)
at org.apache.lucene.index.SegmentMergeInfo.next(SegmentMergeInfo.java:66)
at org.apache.lucene.index.MultiSegmentReader$MultiTermEnum.next(MultiSegmentReader.java:494)
at org.apache.lucene.search.FieldCacheImpl.createValue(FieldCacheImpl.java:389)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:351)
at org.apache.lucene.search.FieldSortedHitQueue.comparatorString(FieldSortedHitQueue.java:415)
at org.apache.lucene.search.FieldSortedHitQueue.createValue(FieldSortedHitQueue.java:206)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:167)
at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:55)
at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:121)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113)
at org.apache.lucene.search.Hits.<init>(Hits.java:90)
at org.apache.lucene.search.Searcher.search(Searcher.java:61)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlat(DefaultSearchEngine.java:179)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:99)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:77)
at org.sonatype.nexus.index.DefaultNexusIndexer.searchFlat(DefaultNexusIndexer.java:386)
at org.sonatype.nexus.index.archetype.NexusArchetypeDataSource.getArchetypeCatalog(NexusArchetypeDataSource.java:55)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.doCollectArchetypes(Maven3ServerIndexerImpl.java:324)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.getArchetypes(Maven3ServerIndexerImpl.java:317)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport.run(Transport.java:178)
[ 70094] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 14.0.2 Build #IU-139.659.2
[ 70094] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_25
[ 70094] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 70094] ERROR - plication.impl.ApplicationImpl - Vendor: Oracle Corporation
[ 70094] ERROR - plication.impl.ApplicationImpl - OS: Linux
[ 70094] ERROR - plication.impl.ApplicationImpl - Last Action: CloseProject
^C
saschajostock@euerEhren:~/lib/Programme/idea-IU-139.225.3/bin$ ./idea.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
DEBUG - [ORACLE-SQL] undefined element type: alter_external_table_clauses
DEBUG - [ORACLE-SQL] undefined element type: records_per_block_clause
DEBUG - [ORACLE-SQL] undefined element type: ref_attribute
DEBUG - [ORACLE-SQL] undefined element type: physical_properties
DEBUG - [ORACLE-SQL] undefined element type: redo_logfile_spec
DEBUG - [ORACLE-SQL] undefined element type: row_movement_clause
DEBUG - [ORACLE-SQL] undefined element type: hash_subpartition_quantity
DEBUG - [ORACLE-SQL] undefined element type: primary_operator
DEBUG - [ORACLE-SQL] undefined element type: xml_type_column_properties
DEBUG - [ORACLE-SQL] undefined element type: parameter_types
DEBUG - [ORACLE-SQL] undefined element type: partition_value
DEBUG - [ORACLE-SQL] undefined element type: lob_partition_storage
DEBUG - [ORACLE-SQL] undefined element type: create_cluster
DEBUG - [ORACLE-SQL] undefined element type: index_attributes
DEBUG - [ORACLE-SQL] undefined element type: parameter_type
DEBUG - [ORACLE-SQL] undefined element type: return_type
DEBUG - [ORACLE-SQL] undefined element type: scn_value
DEBUG - [ORACLE-SQL] undefined element type: move_table_clause
DEBUG - [ORACLE-SQL] undefined element type: data_item
DEBUG - [ORACLE-SQL] undefined element type: create_index_statement
[ 12601] WARN - org.jetbrains.io.BuiltInServer - Die Adresse wird bereits verwendet
java.net.BindException: Die Adresse wird bereits verwendet
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.Net.bind(Net.java:428)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:512)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1121)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeBindNow(ChannelHandlerInvokerUtil.java:108)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeBind(DefaultChannelHandlerInvoker.java:214)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:233)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:943)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:212)
at io.netty.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:340)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:343)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:356)
at io.netty.util.concurrent.SingleThreadEventExecutor.run(SingleThreadEventExecutor.java:834)
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.run(PooledThreadExecutor.java:56)
[ 13050] WARN - .ExternalResourceManagerExImpl - Cannot find standard resource. filename:/META-INF/tapestry_5_0_0.xsd class=class com.intellij.javaee.ResourceRegistrarImpl, classLoader:null
[ 135618] ERROR - plication.impl.ApplicationImpl - java.lang.OutOfMemoryError: Java heap space
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:134)
at com.intellij.execution.rmi.RemoteUtil.access0(RemoteUtil.java:36)
at com.intellij.execution.rmi.RemoteUtil.compute(RemoteUtil.java:105)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:181)
at com.intellij.execution.rmi.RemoteUtil.invoke(RemoteUtil.java:102)
at com.sun.proxy.$Proxy103.getArchetypes(Unknown Source)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:168)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWrapper.java:165)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesManager.java:308)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.run(MavenArchetypesStep.java:239)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:405)
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.run(PooledThreadExecutor.java:56)
Caused by: java.lang.OutOfMemoryError: Java heap space
at org.apache.lucene.search.FieldCacheImpl.createValue(FieldCacheImpl.java:402)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:351)
at org.apache.lucene.search.FieldSortedHitQueue.comparatorString(FieldSortedHitQueue.java:415)
at org.apache.lucene.search.FieldSortedHitQueue.createValue(FieldSortedHitQueue.java:206)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:167)
at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:55)
at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:121)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113)
at org.apache.lucene.search.Hits.<init>(Hits.java:90)
at org.apache.lucene.search.Searcher.search(Searcher.java:61)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlat(DefaultSearchEngine.java:179)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:99)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:77)
at org.sonatype.nexus.index.DefaultNexusIndexer.searchFlat(DefaultNexusIndexer.java:386)
at org.sonatype.nexus.index.archetype.NexusArchetypeDataSource.getArchetypeCatalog(NexusArchetypeDataSource.java:55)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.doCollectArchetypes(Maven3ServerIndexerImpl.java:324)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.getArchetypes(Maven3ServerIndexerImpl.java:317)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport.run(Transport.java:178)
at sun.rmi.transport.Transport.run(Transport.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:174)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671)
[ 135620] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 14.0.2 Build #IU-139.659.2
[ 135620] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_25
[ 135620] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 135620] ERROR - plication.impl.ApplicationImpl - Vendor: Oracle Corporation
[ 135620] ERROR - plication.impl.ApplicationImpl - OS: Linux
[ 135620] ERROR - plication.impl.ApplicationImpl - Last Action: CloseProject
更改设置->Maven->导入->JDK 以选择导入器对我不起作用。但是清除设置中的“-Xmx512m”值->Maven->Importing->importer 的 VM 选项。清除该值并保存设置后,新模块的 Maven 原型列表立即加载到 IntelliJ IDEA Professional 14.0.3 中。
Maven 的 JRE 运行 内存不足。
在 Build → Build Tools → Maven → Importing 下,将 VM options for importer 设置为 -Xmx1024m
(默认值-Xmx512m
太低了)。
就我而言,我已经解决了这个问题。
'$JAVA_HOME/jre/bin/java' 文件没有 运行.
的权限(http://1004lucifer.blogspot.kr/2015/08/intellij-loading-archetype-list.html)
查看~/Library/Logs/IntelliJIdea13/下的idea.log后,发现抛出异常 Caused by: java.rmi.ConnectException: Connection refused to host: localhost;嵌套异常是:java.net.ConnectException:连接被拒绝。根本原因是我的 /etc/hosts 文件不知何故被损坏,本地主机 ip 被更新为一些垃圾值。将本地主机映射更改为 127.0.0.1 后,我的问题得到解决
最大内存对我也有用,IntelliJ Community Edition 2016.2.4
以下是设置的屏幕截图,如果有帮助的话:
我遇到过类似的问题。查看 IDE 日志后,我发现它无法连接本地主机。它显示以下异常:
2016-11-30 13:47:54,193 [10832638] ERROR - plication.impl.ApplicationImpl - Cannot reconnect.
java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWrapper.java:175)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesManager.java:310)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.lambda$updateArchetypesList(MavenArchetypesStep.java:237)
at com.intellij.openapi.application.impl.ApplicationImpl.run(ApplicationImpl.java:309)
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)
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 refused: connect
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:173)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:78)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:527)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:523)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:178)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.execute(MavenIndexerWrapper.java:175)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 9 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
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.lambda$acquire(RemoteProcessSupport.java:258)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:226)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:256)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:162)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:170)
... 17 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
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.<init>(Socket.java:434)
at java.net.Socket.<init>(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)
... 26 more
我找到了下面 link 中提到的对我有用的解决方案 Unable to import Maven project into IntelliJ IDEA
File -> Settings -> 在搜索框中输入Maven,Maven Importing 的子菜单有这两个选项。 IntelliJ 2016.3.2
对我有用的设置是
的组合1. "JDK for importer" to External(my Installed JDK) and
2. "VM option for importer" to a higher value -Xmx1536m
但正如 Sascha Jostock 所说的那样至关重要
重新启动后,我需要将 "VM option for importer" 增加到更高的值 -Xmx1792m。我觉得很蠢!!
您可以尝试更改导入程序的 VM 选项:-Xmx2048M 设置 -> Maven -> 导入。在 IntelliJ IDEA 2016.3.4、JRE 1.8 上测试。0_111
帮助进行了两项更改:
- 清空字段: 设置(Ctrl+Alt+S) -> 构建、执行、部署 -> 构建工具 -> Maven -> 导入 -> 导入器的 VM 选项(只需将此字段设为空)
- 更改选项 设置 (Ctrl+Alt+S) -> 构建、执行、部署 -> 构建工具 -> Maven -> 导入 -> JDK for importer to "1.8 (java version "1.8......等等)