Reputation: 348
I'm trying to setup Broadleaf in my local machine, I'm following the getting started guide and I'm having an error on the step when I import existing Maven projects in eclipse Juno, I get the following error
An internal error occurred during: "Importing Maven projects". org.eclipse.wst.common.componentcore.internal.impl.ReferencedComponentXMIResourceImpl cannot be cast to org.eclipse.jpt.jpa.core.resource.xml.JpaXmlResource
I tried to Google it but the only info I could get was this but wasn't helpful
Please help.
Upvotes: 1
Views: 2284
Reputation: 201
Inside Maven Parents Folder in Package Explorer, goto DemoSite - > Right Click -> Maven -> Update Project. Then Import the project. Will work fine.
Upvotes: 0
Reputation: 1
There is a solution posted to solve this cast exception in Eclipse Juno,
by disabling the JPA Configurator in eclipse preferences,
Preferences -> Maven -> Java EE Integration -> Select active Java EE configurators -> disable 'JPA Configurator'
It worked for me. Hope it works for you.
Upvotes: 0
Reputation: 348
I got a work around. I Downloaded Eclipse Luna, then I ran mvn compile
on the root pom from terminal, then I went back to eclipse to import existing Maven projects. Worked like a charm.
Upvotes: 2