webentwicklung-frage-antwort-db.com.de

IntelliJ neues Projekt - Maven-Archetyp-Liste leer

Beim Erstellen von IntelliJ → Neues Projekt → Maven ist die Archetyp-Liste leer und wird nicht gefüllt, egal wie lange die Zeit vergangen ist. Die "Archetyp-Liste wird geladen ..." wird fortgesetzt, scheint aber nicht viel zu bewirken. Irgendwelche Vorschläge?

enter image description here

Info von 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

72
DanCat

Mavens JRE geht der Speicher aus.

Setzen Sie unter Erstellen → Tools erstellen → Maven → ImportierenVM-Optionen für den Import auf -Xmx1024m (der Standardwert -Xmx512m ist zu niedrig).

165
Luke

Schalten Sie Java Laufzeiten

Ich hatte das gleiche problem Meine Lösung war, ändern Sie die JRE in Einstellungen → Maven → Importieren → JDK für Importer. Wechseln Sie von "Internal JRE" zu "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.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
[email protected]:~/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 
24
Sascha Jostock

Das Ändern der Einstellungen-> Maven-> Importieren-> JDK für die Auswahl des Importers hat bei mir nicht funktioniert. Das Löschen des Werts "-Xmx512m" unter Einstellungen-> Maven-> Importieren-> VM-Optionen für den Import hat jedoch funktioniert. Nachdem Sie diesen Wert gelöscht und die Einstellungen gespeichert haben, wird die Maven-Archetypliste für das neue Modul sofort in IntelliJ IDEA Professional 14.0.3.

10
Alan Basque

Der maximale Speicher hat auch für mich den Trick getan, IntelliJ Community Edition 2016.2.4

Hier ist ein Screenshot der Einstellungen, wenn es hilft: enter image description here

3

Ich habe das ähnliche Problem konfrontiert. Nach einem Blick auf IDE log habe ich herausgefunden, dass es nicht möglich ist, den Localhost zu verbinden. Es wurde die folgende Ausnahme angezeigt:

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

Ich habe die im folgenden Link erwähnte Lösung gefunden, die für mich funktioniert hat Maven-Projekt kann nicht in IntelliJ IDEA importiert werden

2
Somnath Guha

Datei -> Einstellungen -> Geben Sie Maven in das Suchfeld und das Untermenü von Maven Importing ein. IntelliJ 2016.3.2

Die Einstellung, die für mich gearbeitet hat, ist eine Kombination aus

1. "JDK for importer" to External(my Installed JDK) and
2. "VM option for importer" to a higher value -Xmx1536m

Entscheidend war jedoch, wie Sascha Jostock feststellte

Maven settings for Archetype

Nach dem Neustart musste ich "VM-Option für Importer" auf einen höheren Wert -Xmx1792m erhöhen. Ich finde es dumm !!

1
vimal krishna

Hat zwei Änderungen geholfen: 1. Löschen des Feldes : Einstellungen (Strg + Alt + S) -> Erstellen, Ausführen, Deployment -> Build Tools -> Maven -> Importieren -> VM-Optionen für Importer (nur dieses Feld leer lassen) 2. Ändern der Option Einstellungen (Strg + Alt + S) -> Build, Execution, Deployment -> Build Tools -> Maven -> Import -> JDK für Importer bis "1.8 (Java Version" 1.8 ........ etc .)

1
Torino

Sie können versuchen, VM Optionen für den Import zu ändern: -Xmx2048M Einstellungen -> Maven -> Importieren. Getestet auf IntelliJ IDEA 2016.3.4, JRE 1.8.0_111

https://www.youtube.com/watch?v=un8S3t1N4FY