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

跟風遠走 提交于 2019-12-07 15:53:59

问题


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?

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.


回答1:


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?

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

Hope this helps!



来源:https://stackoverflow.com/questions/17299667/cannot-create-jpa-facet-project-facet-jpt-jpa-could-not-be-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!