问题
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