Unable to import maven project: See logs for details

参考博文:https://blog.csdn.net/wangjin890620/article/details/101363943

错误提示

IDEA中导入 Maven 项目或者 Maven 项目切换分支后,提示:Unable to import maven project: See logs for details

1. 从 Help>>show Log in Explorer 打开日志

Unable to import maven project: See logs for details

2. 报错信息

若报错堆栈信息如下:需要修改 MAVEN的 Importing和Runner的JDK一致。

2019-09-24 15:54:53,177 [79997751]  ERROR -      #org.jetbrains.idea.maven - IntelliJ IDEA 2018.3  Build #IU-183.4284.148 
2019-09-24 15:54:53,177 [79997751]  ERROR -      #org.jetbrains.idea.maven - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 
2019-09-24 15:54:53,177 [79997751]  ERROR -      #org.jetbrains.idea.maven - OS: Windows 10 
2019-09-24 15:54:54,060 [79998634]   INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 1279ms; general responsiveness: ok; EDT responsiveness: ok 
2019-09-24 15:54:54,187 [79998761]   INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 0 to update, calculated in 0ms 
2019-09-24 15:55:31,582 [80036156]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:02:39,691 [80464265]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:02:44,386 [80468960]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:03:24,203 [80508777]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:03:31,740 [80516314]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:05:31,587 [80636161]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:12:39,637 [81064211]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:12:44,454 [81069028]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:13:24,083 [81108657]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:13:31,845 [81116419]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:15:31,596 [81236170]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:22:39,644 [81664218]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:22:44,358 [81668932]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:23:24,097 [81708671]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:23:31,756 [81716330]  ERROR - .httpclient.HttpMethodDirector - Received redirect response 302 but no location header 
2019-09-24 16:24:34,611 [81779185]   INFO - atisticsWhiteListGroupsService - Request failed with status code 404 
com.intellij.util.io.HttpRequests$HttpStatusException: Request failed with status code 404. Status=404, Url=https://download.jetbrains.com/fus/whitelist/bear/groups/IU.json
	at com.intellij.util.io.HttpRequests.throwHttpStatusError(HttpRequests.java:643)
	at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:624)
	at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:59)
	at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:378)
	at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:387)
	at com.intellij.util.io.HttpRequests$RequestImpl.readString(HttpRequests.java:442)
	at com.intellij.util.io.RequestBuilder.lambda$readString$3(RequestBuilder.java:85)
	at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:523)
	at com.intellij.util.io.HttpRequests.process(HttpRequests.java:499)
	at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:59)
	at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:352)
	at com.intellij.util.io.RequestBuilder.readString(RequestBuilder.java:85)
	at com.intellij.internal.statistic.service.fus.FUStatisticsWhiteListGroupsService.getApprovedGroups(FUStatisticsWhiteListGroupsService.java:46)
	at com.intellij.internal.statistic.service.fus.FUStatisticsSettingsService.getApprovedGroups(FUStatisticsSettingsService.java:43)
	at com.intellij.internal.statistic.service.fus.collectors.FUStatisticsPersistence.persistProjectUsages(FUStatisticsPersistence.java:49)
	at com.intellij.internal.statistic.updater.StatisticsJobsScheduler$2.lambda$projectOpened$0(StatisticsJobsScheduler.java:110)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:230)
	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)

Unable to import maven project: See logs for details

Unable to import maven project: See logs for details
Unable to import maven project: See logs for details

3. 修改项目结构中的 jre 版本

Unable to import maven project: See logs for details

Unable to import maven project: See logs for details

4. 刷新 Maven

Unable to import maven project: See logs for details

上一篇:Zookeeper报错问题


下一篇:pytorch打不开tensorboard的解决方法,解决报错 No dashboards are active for the current data set.