当前位置: 首页 > 知识库问答 >
问题:

Eclipse:在“更新Maven项目”期间发生内部错误。org/apache/maven/plugin/war/util/mappingutils

子车成和
2023-03-14

添加对pom.xml的依赖项并通过Maven->Update Project进行更新,我得到了这个错误(请参见下面的.log)

!条目org.eclipse.core.jobs 4 2 201 2-08-22 10:04:31.078!消息:“更新Maven Project”期间发生内部错误。!Stack 0 java.lang.noClassDeffounderror:org/apache/maven/plugin/war/util/mappingutils at org.maven.ide.eclipse.wtp.namemapping.patternbasedfilenamapping.mapfileName(patternbasedfilenamapping.java:36)at org.maven.ide.eclipse.wtp.webprojectConfiguratorDelegate.configureClasspath(html" target="_blank">webprojectConfiguratorDelegate.java:367)at在org.eclipse.m2e.jdt.internal.buildPathManagerDelegate.populateClasspath(DefaultClasspathManagerDelegate.java:61),org.eclipse.m2e.jdt.internal.buildPathManager.getClasspath 419)在org.eclipse.m2e.jdt.internal.buildPathManager.updateClasspath(buildPathManager.java:240)at org.eclipse.m2e.jdt.internal.buildPathManager.mavenProjectChanged(BuildPathManager.java:229)在org.eclipse.m2e.core.internal.project.registry.projectRegistryManager.notifyProjectChangeListeners(ProjectRegistryManager.java:724)在.java:280)在org.eclipse.m2e.core.internal.projectconfigurationmanager.updateProjectConfigurationmanager(projectConfigurationmanager.java:323)在org.eclipse.m2e.core.ui.internal.updatemavenProjectJob.runinworkspace(updatemavenProjectJob.java:74)在org.eclipse.core.internal.resources.internalworkspaceJob.run(

有什么建议吗?

共有1个答案

袁单鹗
2023-03-14

检查POM中maven-war-plugin的版本,并确保它是2.2

 类似资料: