我在STS中导入了maven项目,当我运行更新更新项目时,我收到:
"Updating Maven Project". Unsupported IClasspathEntry kind=4
有什么解决办法吗?
我在STS中导入了maven项目,当我运行更新更新项目时,我收到:
"Updating Maven Project". Unsupported IClasspathEntry kind=4
有什么解决办法吗?
当前回答
有时,即使重新导入Maven项目也无法工作。在eclipse中正确地更新项目并不是一个确定的过程。 我发现的唯一100%安全的程序是:
Disable Maven Nature, run mvn eclipse:clean, restart, cross your fingers and Pray 3 times. If this won't work, delete the project, run mvn eclipse:clean, re-import refresh, pray and use the force. If this still doesn't work, restart Eclipse, or even better your computer. While waiting for the reboot, you can make a random donation to fix your Karma. Repeat step 2 and don't forget to pray and control your anger. Anger leads to hate. Hate leads to suffering. Try all the other answers posted in this thread. You might need to try them all for 3 times at least before giving up. Format your Computer, re-install Eclipse and Maven. No need to pray anymore, all gods hate you anyway Delete your git project, burn the physical drive that stored the remote repository, and write your project from scratch. Find a time machine, travel to the past and convince yourself to follow another, non-programming career or at least to avoid Java
其他回答
有时,即使重新导入Maven项目也无法工作。在eclipse中正确地更新项目并不是一个确定的过程。 我发现的唯一100%安全的程序是:
Disable Maven Nature, run mvn eclipse:clean, restart, cross your fingers and Pray 3 times. If this won't work, delete the project, run mvn eclipse:clean, re-import refresh, pray and use the force. If this still doesn't work, restart Eclipse, or even better your computer. While waiting for the reboot, you can make a random donation to fix your Karma. Repeat step 2 and don't forget to pray and control your anger. Anger leads to hate. Hate leads to suffering. Try all the other answers posted in this thread. You might need to try them all for 3 times at least before giving up. Format your Computer, re-install Eclipse and Maven. No need to pray anymore, all gods hate you anyway Delete your git project, burn the physical drive that stored the remote repository, and write your project from scratch. Find a time machine, travel to the past and convince yourself to follow another, non-programming career or at least to avoid Java
确保您正在运行的m2e(clipse)插件的版本至少为1.1.0 关闭maven项目-右键单击“关闭项目” 手动删除。classpath文件中所有带有kind="var"的classpathentry 开放项目
or
删除maven项目 手动清除.classpath 4再导入项目
这个问题(https://bugs.eclipse.org/394042)在m2e 1.5.0中得到修复,该版本可用于Eclipse Kepler和Luna:
http://download.eclipse.org/technology/m2e/releases/1.5
如果你也使用m2e-wtp,你还需要安装m2e-wtp 1.1.0:
http://download.eclipse.org/m2e-wtp/releases/luna/1.1
如果更新命令用于用于Clover代码覆盖的项目,也会抛出此错误。
在此情况下解决: 取消要更新的项目文件夹。 再次运行maven更新,然后使用工具进行代码覆盖。
我无法让mvn eclipse:clean等与开普勒一起工作。
然而,我改变了创建和扩展变量,只使用eclipse类路径中的外部jar。这反映在我的.classpath中没有var。
这纠正了问题。我更新了Maven。