Page 1 of 1

Problems while following getting started

Posted: Tue Jan 27, 2015 7:17 am
by hamakhaa
Hello everyone,
I have been trying to setup broadleaf commerce 3.2 and following the getting started page. When I try to import the project I get the following:

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

I am using eclipse kepler, any idea why this happens?

Re: Problems while following getting started

Posted: Tue Jan 27, 2015 12:53 pm
by phillipuniverse
Try using Luna instead.

Re: Problems while following getting started

Posted: Sat Feb 21, 2015 7:19 pm
by jnate
I have a similar issue. I am using the luna version. From the get-go, I had an initial warning when selecting the workspace containing DemoSite. At that time it said that the workspace was for an older version of Eclipe, so it asked if it could update the workspace (you are obliged to update it to continue). So I was wondering if letting it update the workspace wasn't the cause of the maven project importation issue. Or perhaps the Maven Luna plugin (which seems different from the one pointed out in the "getting started") is causing the issue?
Is there a way to fix this?

This is the error message:
Could not update project core configuration
org.eclipse.wst.common.componentcore.internal.impl.ReferencedComponentXMIResourceImpl cannot be cast to org.eclipse.jpt.common.core.resource.xml.JptXmlResource

Thanks in advance.

Re: Problems while following getting started

Posted: Sat Feb 21, 2015 10:32 pm
by jnate
I found a solution!!! Thanks to a post here: http://stackoverflow.com/questions/21442348/update-maven-project-internal-error-referencedcomponentxmiresourceimpl-cannot

For anyone having this issue, you have to disable the JPA Configurator by doing this:
Preferences -> Maven -> Java EE Integration -> Select active Java EE configurators -> disable 'JPA Configurator'