无法使用Spring Boot运行OpenJPA实体的静态增强 [英] Cannot run static enhancement of OpenJPA entities with Spring Boot

查看:204
本文介绍了无法使用Spring Boot运行OpenJPA实体的静态增强的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

mvn package openjpa-maven-plugin:enhance 阶段失败在Spring Boot应用程序中增强我的JPA实体.

mvn package fails at the openjpa-maven-plugin:enhance stage when I try to enhance my JPA entities in a Spring Boot app.

错误说明很长

enhance failed: MetaDataFactory could not be configured (conf.newMetaDataFactoryInstance() returned null).

no configuration properties were found.

它列出了一些原因:

确保您有一个META-INF/persistence.xml文件,它是 在您的类路径中可用

Ensure that you have a META-INF/persistence.xml file, that it is available in your classpath

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆