问题描述
我正在使用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)
。
现在从命令行我的行家工作正常。
然后在Intellij Idea Maven设置中,将Maven主目录指向我新安装的Maven文件夹(/home/<user>/programs-in-path/apache-maven-3.6.0).
当我按下载源时,Idea表示:找不到源
PS,在Intellij Idea的maven设置下,我使用捆绑的maven 3或通过apt-get安装的ubuntu存储库中的maven 3.3。 想法很好
智能想法日志:
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
1楼
这是的IntelliJ IDEA的错误-
更新到新版本的Idea之后,一切正常!