Я использую Ubuntu (16.04 xenial).Репозиторий Ubuntu содержит старую версию maven (3.3), но мне нужно 3.6. Я загружаю maven 3.6 с официального сайта, добавляю папку maven в переменную окружения PATH (/home/<user>/programs-in-path/apache-maven-3.6.0/bin)
.Теперь из командной строки мой Maven работает нормально.Затем в Intellij Idea maven урегулирования я устанавливаю домашнюю директорию maven для моей только что установленной папки maven (/home/<user>/programs-in-path/apache-maven-3.6.0).
Когда я нажимаю источники загрузки Идея говорит: источники не найдены
PS, когда в настройках Intellij Idea maven я использую пакетный maven 3или maven 3.3 из репозитория Ubuntu, установленного через apt-get.Идея отлично работает
IntellIj Идея журнала:
2019-02-13 14:37:34,601 [439840293] ERROR - #org.jetbrains.idea.maven - java.lang.NoSuchMethodError: org.eclipse.aether.internal.impl.DefaultArtifactResolver.setLoggerFactory(Lorg/eclipse/aether/spi/log/LoggerFactory;)Lorg/ecli
java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: org.eclipse.aether.internal.impl.DefaultArtifactResolver.setLoggerFactory(Lorg/eclipse/aether/spi/log/LoggerFactory;)Lorg/eclipse/aether/internal/impl/DefaultArtif
<------>at java.util.concurrent.FutureTask.report(FutureTask.java:122)
<------>at java.util.concurrent.FutureTask.get(FutureTask.java:192)
<------>at org.jetbrains.idea.maven.project.MavenArtifactDownloader.download(MavenArtifactDownloader.java:221)
<------>at org.jetbrains.idea.maven.project.MavenArtifactDownloader.download(MavenArtifactDownloader.java:100)
<------>at org.jetbrains.idea.maven.project.MavenArtifactDownloader.download(MavenArtifactDownloader.java:68)
<------>at org.jetbrains.idea.maven.project.MavenProjectsTree.downloadSourcesAndJavadocs(MavenProjectsTree.java:1389)
<------>at org.jetbrains.idea.maven.project.MavenProjectsProcessorArtifactsDownloadingTask.perform(MavenProjectsProcessorArtifactsDownloadingTask.java:55)
<------>at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:132)
<------>at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:32)
<------>at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:107)
<------>at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:446)
<------>at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
<------>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.lang.NoSuchMethodError: org.eclipse.aether.internal.impl.DefaultArtifactResolver.setLoggerFactory(Lorg/eclipse/aether/spi/log/LoggerFactory;)Lorg/eclipse/aether/internal/impl/DefaultArtifactResolver;
<------>at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.resolve(Maven3ServerEmbedderImpl.java:1223)
<------>at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.doResolve(Maven3ServerEmbedderImpl.java:1178)
<------>at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.doResolve(Maven3ServerEmbedderImpl.java:1172)
<------>at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.resolve(Maven3ServerEmbedderImpl.java:1041)
<------>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:498)
<------>at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
<------>at sun.rmi.transport.Transport$1.run(Transport.java:200)
<------>at sun.rmi.transport.Transport$1.run(Transport.java:197)
<------>at java.security.AccessController.doPrivileged(Native Method)
<------>at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
<------>at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
<------>at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
<------>at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
<------>at java.security.AccessController.doPrivileged(Native Method)
<------>at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
<------>... 3 more
2019-02-13 14:37:34,602 [439840294] ERROR - #org.jetbrains.idea.maven - IntelliJ IDEA 2018.1 Build #IU-181.4203.550.
2019-02-13 14:37:34,602 [439840294] ERROR - #org.jetbrains.idea.maven - JDK: 1.8.0_152-release.
2019-02-13 14:37:34,602 [439840294] ERROR - #org.jetbrains.idea.maven - VM: OpenJDK 64-Bit Server VM.
2019-02-13 14:37:34,602 [439840294] ERROR - #org.jetbrains.idea.maven - Vendor: JetBrains s.r.o.
2019-02-13 14:37:34,602 [439840294] ERROR - #org.jetbrains.idea.maven - OS: Linux.
2019-02-13 14:37:34,602 [439840294] ERROR - #org.jetbrains.idea.maven - Last Action: Maven.ShowSettings