在“导入Maven项目”NoSuchMethod期间发生内部错误

时间:2016-10-25 08:05:00

标签: java eclipse maven

我无法在eclipse中构建我的工作空间,它给了我一个内部错误。堆栈跟踪是

!ENTRY org.eclipse.core.jobs 4 2 2016-10-25 15:54:55.470
!MESSAGE An internal error occurred during: "Importing Maven projects".
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.m2e.core.embedder.IMaven.getMojoParameterValue(Lorg/apache/maven/project/MavenProject;Ljava/lang/String;Ljava/lang/Class;Lorg/apache/maven/model/Plugin;Lorg/apache/maven/model/ConfigurationContainer;Ljava/lang/String;Lorg/eclipse/core/runtime/IProgressMonitor;)Ljava/lang/Object;
    at com.basistech.m2e.code.quality.shared.AbstractMavenPluginConfigurationTranslator.getParameterValue(AbstractMavenPluginConfigurationTranslator.java:36)
    at com.basistech.m2e.code.quality.shared.AbstractMavenPluginConfigurationTranslator.getParameterValue(AbstractMavenPluginConfigurationTranslator.java:43)
    at com.basistech.m2e.code.quality.checkstyle.MavenPluginConfigurationTranslator.isSkip(MavenPluginConfigurationTranslator.java:95)
    at com.basistech.m2e.code.quality.checkstyle.EclipseCheckstyleProjectConfigurator.handleProjectConfigurationChange(EclipseCheckstyleProjectConfigurator.java:106)
    at com.basistech.m2e.code.quality.shared.AbstractMavenPluginProjectConfigurator.mavenProjectChanged(AbstractMavenPluginProjectConfigurator.java:181)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.mavenProjectChanged(ProjectConfigurationManager.java:905)
    at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.notifyProjectChangeListeners(ProjectRegistryManager.java:732)
    at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.applyMutableProjectRegistry(ProjectRegistryManager.java:855)
    at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:279)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:208)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:155)
    at org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$1.doCreateMavenProjects(MavenImportWizard.java:172)
    at org.eclipse.m2e.core.ui.internal.wizards.AbstractCreateMavenProjectsOperation.run(AbstractCreateMavenProjectsOperation.java:74)
    at org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$3.runInWorkspace(MavenImportWizard.java:257)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

我尝试重新导入我的项目,删除.settings,.project文件和文件夹,并尝试开始新的工作节奏,但我仍然遇到同样的问题。

有人可以帮帮我吗?

谢谢,

1 个答案:

答案 0 :(得分:0)

这总是由导入一些冲突依赖项引起的。发布你的

pom.xml