本文介绍了在“更新Maven项目"期间发生内部错误. org.eclipse.m2e.wtp.WTPProjectsUtil.isM2eWtpDisabled的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Maven v4.0.0和jboss 7.0和JDK 1.6中使用了eclipse kepler.我收到以下错误:
I am using eclipse kepler with maven v4.0.0 and jboss 7.0 and JDK 1.6. I am getting the following error:
java.lang.NoSuchMethodError: org.eclipse.m2e.wtp.WTPProjectsUtil.isM2eWtpDisabled(Lorg/eclipse/m2e/core/project/IMavenProjectFacade;Lorg/eclipse/core/runtime/IProgressMonitor;)Z
at org.eclipse.m2e.wtp.jaxrs.internal.configurators.JaxRsProjectConfigurator.isConfigurationEnabled(JaxRsProjectConfigurator.java:100)
at org.eclipse.m2e.wtp.jaxrs.internal.configurators.JaxRsProjectConfigurator.configureInternal(JaxRsProjectConfigurator.java:75)
at org.eclipse.m2e.wtp.jaxrs.internal.configurators.JaxRsProjectConfigurator.mavenProjectChanged(JaxRsProjectConfigurator.java:180)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.mavenProjectChanged(ProjectConfigurationManager.java:965)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.notifyProjectChangeListeners(ProjectRegistryManager.java:746)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.applyMutableProjectRegistry(ProjectRegistryManager.java:865)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:289)
at org.eclipse.m2e.core.internal.project.registry.MavenProjectManager.refresh(MavenProjectManager.java:67)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.getProjectFacade(MavenBuilder.java:216)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.call(MavenBuilder.java:91)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.call(MavenBuilder.java:1)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:161)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:137)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:89)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1305)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:89)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
请帮助我.
推荐答案
您可以从市场上使用m2e 1.5.0或者您可以使用这种方法:
You can use m2e 1.5.0 from marketplaceor you can use this approach:
-
转到:
Go to:
首选项->单击Maven->单击模板
Preferences->Click Maven->Click Templates
现在您可以看到模板列表,取消选中wtp的所有模板,即 m2e-wtp-activation ....
Now you can see the list of templates,un-check all the templates of wtp i.e m2e-wtp-activation ....
现在您可以全新安装项目
Now you can clean install the project
这篇关于在“更新Maven项目"期间发生内部错误. org.eclipse.m2e.wtp.WTPProjectsUtil.isM2eWtpDisabled的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!