IntelliJ IDEA无法解析maven项目

时间:2017-12-03 09:29:17

标签: maven intellij-idea

我的IntelliJ IDEA卡在"阅读... / pom.xml"

我更改了我的主机文件,添加了127.0.0.1 localhost,无法正常工作

我删除了IntelliJ IDEA配置目录,重新安装了IntelliJ IDEA,无法正常工作

我认为maven,无法工作

我使用IntelliJ的内部maven版本而不是下载版本,无法工作

我在maven中更改了这两个配置设置,仍然无法正常工作 enter image description here

错误显示在IDEA日志文件中:

org.jetbrains.idea.maven.indices.MavenIndexException: Cannot read index.properties file
    at org.jetbrains.idea.maven.indices.MavenIndex.<init>(MavenIndex.java:125)
    at org.jetbrains.idea.maven.indices.MavenIndices.load(MavenIndices.java:58)
    at org.jetbrains.idea.maven.indices.MavenIndices.<init>(MavenIndices.java:46)
    at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureInitialized(MavenIndicesManager.java:111)
    at org.jetbrains.idea.maven.indices.MavenIndicesManager.getIndicesObject(MavenIndicesManager.java:94)
    at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureIndicesExist(MavenIndicesManager.java:171)
    at org.jetbrains.idea.maven.indices.MavenProjectIndicesManager$3.run(MavenProjectIndicesManager.java:117)
    at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
    at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
    at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:277)
    at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:291)
    at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:246)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
    at com.intellij.util.Alarm$Request.runSafely(Alarm.java:417)
    at com.intellij.util.Alarm$Request.access$700(Alarm.java:344)
    at com.intellij.util.Alarm$Request$1.run(Alarm.java:384)
    at com.intellij.util.Alarm$Request.run(Alarm.java:395)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:242)
    at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
    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.io.FileNotFoundException: C:\Users\ifly\.IntelliJIdea2017.3\system\Maven\Indices\Index0\index.properties (系统找不到指定的文件。)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at org.jetbrains.idea.maven.indices.MavenIndex.<init>(MavenIndex.java:116)
    ... 23 more

任何人都可以帮助我吗?

2 个答案:

答案 0 :(得分:0)

尝试删除.IntelliJIdea2017.3 \ system \ Maven \ directory。

答案 1 :(得分:0)

我尝试删除.IntelliJIdea2017.3 \ system \ Maven \目录。 但是当想法重建目录时,就没有index.properties。