Update Maven project internal error - ReferencedComponentXMIResourceImpl cannot be cast to JptXmlResource

戏子无情 提交于 2019-12-08 07:29:08

问题


I need some help from Eclipse/Maven experts out there - I am unable to see my project as a resource to deploy to Tomcat within Eclipse. So I did a search and found that if I run Maven-->Update Project, that would alleviate the problem. However, updating resulted in the following error:

An internal error occurred during: "Updating Maven Project".
org.eclipse.wst.common.componentcore.internal.impl.ReferencedComponentXMIResourceImpl cannot be cast to org.eclipse.jpt.common.core.resource.xml.JptXmlResource

I have no idea what the problem could be.


回答1:


I could handle the problem by disable the active Java EE configurator 'JPA Configurator' under: Preferences -> Maven -> Java EE Integration -> Select active Java EE configurators -> disable 'JPA Configurator'

I am using eclipse Luna with m2e 1.5.0.20140606-0033.



来源:https://stackoverflow.com/questions/21442348/update-maven-project-internal-error-referencedcomponentxmiresourceimpl-cannot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!