Siya Sosibo
Siya Sosibo

Reputation: 348

Cannot import existing Maven projects - Broadleaf

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

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

Please help.

Upvotes: 1

Views: 2284

Answers (3)

Sarnath Jegadeesan
Sarnath Jegadeesan

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

John Sebastian
John Sebastian

Reputation: 1

There is a solution posted to solve this cast exception in Eclipse Juno,

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

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

Siya Sosibo
Siya Sosibo

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

Related Questions