早上打开eclipse,好好的maven项目老是报插件错误. 搜了一些解决方案.说是删除workspace的 目录下的 .metadata目录.
先备份了.metadata目录.然后删除了.重新打开eclipse,发现所有的项目都没了.要重新添加相关项目.不爽.
不过换个思路想想看来这个方法还是有些作用的.
找了一下 .metadata\.plugins 有一个 org.maven.ide.eclipse目录.果断删了.
重新打开eclipse ,问题解决了.
-------------------------下面是一些当时报的错
eclipse.buildId=I20120608-1400
java.version=1.6.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
This is a continuation of log file D:\workspace\.metadata\.bak_0.log
Created Time: 2012-09-04 09:21:45.093
Error
Tue Sep 04 09:37:34 CST 2012
Exception occurred while creating compilation participant
org.eclipse.core.runtime.CoreException: Plug-in org.maven.ide.eclipse.jdt was unable to load class org.maven.ide.eclipse.jdt.internal.JDTCompilationParticipant.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)