Search code examples
eclipsejpaconfigurationfacet

Cannot create JPA Facet: "project facet jpt.jpa could not be found"


I have a maven project in Eclipse Java EE IDE for Web Developers. But when I go enable JPA facet, I cannot choose JPA (there is no JPA option). Have I forgotten to include some dependency?

enter image description here

I've installed the following Maven dependencies: eclipslink-2.5.-RC1.jar, javax.persistence-2.0.0.jar, and mysql-connector-java-5.1.9.jar.

I get the following warning on my project:

Implementation of project facet jpt.jpa could not be found. Functionality will be limited.

UPDATE: I have the Dali Java Persistence Tools installed.

enter image description here


Solution

  • The JPA facet is not dependent on what is in your pom.xml. Check to make sure you have these plugins installed (The ones highlighted in blue).

    Help -> Install New Software... -> What is already installed?

    enter image description here

    If they're missing you can find the plugin here: http://www.eclipse.org/webtools/dali/

    Hope this helps!