登录
注册
写文章
发现
工具
maven仓库的坑
_3t3lfz KEKfID
编辑文章
maven仓库的坑
asfx站长
2021.01.27 20:18:28
阅读
1071
idea提示maven仓库无法导入jar包,错误日志查看办法: Help->Show Log in Explorer,查看idea.log 错误日志显示如下: 2021-01-27 19:50:36,226 [ 64508] WARN - dvertisement.PluginsAdvertiser - Request failed with status code 503 com.intellij.util.io.HttpRequests$HttpStatusException: Request failed with status code 503. Status=503, Url=https://plugins.jetbrains.com//feature/getImplementations/?&featureType=com.intellij.packaging.artifacts.ArtifactType&implementationName=war&build=IU-182.4323.46 at com.intellij.util.io.HttpRequests.throwHttpStatusError(HttpRequests.java:592) at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:573) at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:47) at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:329) at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:338) at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:356) at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:349) at com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser$1.process(PluginsAdvertiser.java:75) at com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser$1.process(PluginsAdvertiser.java:72) at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:475) at com.intellij.util.io.HttpRequests.process(HttpRequests.java:451) at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:47) at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:303) at com.intellij.util.io.RequestBuilder.connect(RequestBuilder.java:56) at com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser.processFeatureRequest(PluginsAdvertiser.java:156) at com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser.retrieve(PluginsAdvertiser.java:69) at com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser$4.run(PluginsAdvertiser.java:313) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314) 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) 解决办法: maven版本和jdk版本有关系。一般要求maven的版本不能高于jdk的版本。对于jdk1.8 我推荐使用[maven 3.5.4](https://mirrors.bfsu.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip "maven 3.5.4")版本的。(ps:本人jdk版本为jdk1.8.0_241)
我的主页
退出