At least one JPA metamodel must be present。 Perhaps you are running on a JRE rather than a JDK?

时间:2024-03-29 13:45:01

At least one JPAmetamodel must be present

至少必须有一个JPA元模型

==

Perhaps you arerunning on a JRE rather than a JDK?

也许您正在运行的是JRE而不是JDK?


默认是运行在jre上的,
但是maven插件需要使用jdk,因此需要在eclipse修改Installed JRES
位置在-->【Window】-->【Prefrences】-->【Java】-->【Installed JREs】
详见下图。
At least one JPA metamodel must be present。 Perhaps you are running on a JRE rather than a JDK?

这样就解决了这个问题,

重新启动IDE,重新构建一下