IntelliJ→New Project→Mavenを作成する場合、アーキタイプリストは空白であり、どれだけ時間が経過しても読み込まれません。 「アーキタイプリストを読み込んでいます...」は継続しますが、ほとんど何もしません。助言がありますか?
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 Professional 14.0.2
MavenのJREのメモリが不足しています。
ビルド→ビルドツール→Maven→インポートで、VM options for importerを-Xmx1024m
(デフォルト値-Xmx512m
が低すぎる)。
同じ問題がありました。私の解決策は、設定→Maven→インポート→JDK for ImporterでJREを変更することでした。 「内部JRE」から「外部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.access$100(RemoteUtil.Java:36)
at com.intellij.execution.rmi.RemoteUtil$2$1$1.compute(RemoteUtil.Java:105)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.Java:181)
at com.intellij.execution.rmi.RemoteUtil$2$1.invoke(RemoteUtil.Java:102)
at com.Sun.proxy.$Proxy101.getArchetypes(Unknown Source)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.execute(MavenIndexerWrapper.Java:168)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.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$6.run(MavenArchetypesStep.Java:239)
at com.intellij.openapi.application.impl.ApplicationImpl$8.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$1$1.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$10.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$1.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$1.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$2.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$5.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$1$1.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.access$100(RemoteUtil.Java:36)
at com.intellij.execution.rmi.RemoteUtil$2$1$1.compute(RemoteUtil.Java:105)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.Java:181)
at com.intellij.execution.rmi.RemoteUtil$2$1.invoke(RemoteUtil.Java:102)
at com.Sun.proxy.$Proxy103.getArchetypes(Unknown Source)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.execute(MavenIndexerWrapper.Java:168)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.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$6.run(MavenArchetypesStep.Java:239)
at com.intellij.openapi.application.impl.ApplicationImpl$8.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$1$1.run(PooledThreadExecutor.Java:56)
Caused by: Java.lang.OutOfMemoryError: Java heap space
at org.Apache.lucene.search.FieldCacheImpl$10.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$1.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$1.run(Transport.Java:178)
at Sun.rmi.transport.Transport$1.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の変更は機能しませんでした。ただし、[設定]-> [Maven]-> [インポート]-> [インポーターのVMオプション]にある[-Xmx512m]値をクリアしました。その値をクリアして設定を保存すると、IntelliJに新しいモジュールのMavenアーキタイプリストがすぐに読み込まれますIDEA Professional 14.0.3。
同様の問題に直面しました。 IDEログを見て、localhostに接続できなかったことがわかりました。以下の例外が表示されていました。
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$2(MavenArchetypesStep.Java:237)
at com.intellij.openapi.application.impl.ApplicationImpl$2.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$4.create(MavenServerManager.Java:527)
at org.jetbrains.idea.maven.server.MavenServerManager$4.create(MavenServerManager.Java:523)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.Java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.execute(MavenIndexerWrapper.Java:178)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.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$2(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
私のために働いた以下のリンクで言及されている解決策を見つけました MavenプロジェクトをIntelliJ IDEAにインポートできません
2つの変更を支援しました。1.フィールドのクリア:設定(Ctrl + Alt + S)->ビルド、実行、展開->ビルドツール-> Maven ->インポート-> インポーターのVMオプション(このフィールドを空にするだけ)2.オプションの変更設定(Ctrl + Alt + S)->ビルド、実行、デプロイ->ビルドツール-> Maven->インポート-> インポーター用JDK to "1.8(Java version" 1.8 ........ etc )
変更を試すことができますVMインポーターのオプション:-Xmx2048M設定-> Maven->インポート。IntelliJでテスト済みIDEA 2016.3.4、JRE 1.8.0_111