gpt4 book ai didi

java - 无法在 mac os 上使用 maven3 使用 intellij IDEA 2019.2 下载源代码

转载 作者:行者123 更新时间:2023-12-01 23:15:45 25 4
gpt4 key购买 nike

我使用的是IDEA2019.2,当我点击下载源时,IDEA提示“Sources not find for xxxx”,但cmd行“mvn depencency:source”有效。 IDE和cmd行使用相同的settings.xml和相同的maven。我尝试了maven 3.3.9、3.6.2,都不起作用。

我在我的Windows笔记本上尝试了该操作,使用相同的配置文件和maven,运行良好。

想法日志:

2019-10-12 19:52:18,763 [4822036]   INFO -      #org.jetbrains.idea.maven - org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact commons-logging:commons-logging:jar:sources:1.2
java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact commons-logging:commons-logging:jar:sources:1.2
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolve(Maven3XServerEmbedder.java:1272)
at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.doResolve(Maven3XServerEmbedder.java:1221)
at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.doResolve(Maven3XServerEmbedder.java:1215)
at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolve(Maven3XServerEmbedder.java:1078)
at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
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:357)
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:573)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact commons-logging:commons-logging:jar:sources:1.2
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:434)
... 23 more

最佳答案

您似乎遇到了此问题 https://youtrack.jetbrains.com/issue/IDEA-196895

此问题已在 2019.3 EAP 中修复

关于java - 无法在 mac os 上使用 maven3 使用 intellij IDEA 2019.2 下载源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58354052/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com