我正在使用Proguard来最小化我的阴影/超级 Jar 的大小。在我包含对ObjectDB的依赖之前,这一直很好。为了使 ObjectDB 正常工作,我需要保留什么?
调用时我得到以下输出Persistence.createEntityManagerFactory()
。
javax.persistence.spi.PersistenceProviderResolverHolder$DefaultPersistenceProviderResolver log
WARNING: javax.persistence.spi::No valid providers found using:
javax.persistence.spi.PersistenceProviderResolverHolder$DefaultPersistenceProviderResolver log
WARNING: javax.persistence.spi::com.objectdb.jpa.Provider - jar:file:/C:/Documents/JProjects/TimeClock/target/TimeClock-1.5.0.jar!/META-INF/services/javax.persistence.spi.PersistenceProvider
javax.persistence.PersistenceException: No Persistence provider for EntityManager named db.odb
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:85)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)