如何修复SecurityException"签名者信息与签名者信息不匹配[...]"在使用EclipseLink 3.x进行编译时?

时间:2018-01-02 09:39:19

标签: java maven eclipselink

由于

mvn install失败

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project project1-jar: Fatal error compiling: java.lang.RuntimeException: Exception [EclipseLink-0] (Eclipse Persistence Services - 3.0.0.v20171222-5074888): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions: 
---------------------------------------------------------

Exception [EclipseLink-86] (Eclipse Persistence Services - 3.0.0.v20171222-5074888): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [persistenceUnitName] in the class [org.eclipse.persistence.internal.jpa.deployment.SEPersistenceUnitInfo] is not accessible.
Internal Exception: java.lang.SecurityException: class "javax.persistence.SharedCacheMode"'s signer information does not match signer information of other classes in the same package
Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[persistenceUnitName-->@name]
Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.deployment.SEPersistenceUnitInfo --> [])

Runtime Exceptions: 
---------------------------------------------------------

java.lang.NullPointerException
-> [Help 1]

在Java EE项目的实体JAR上。几周前我提交了一份错误报告,但没有任何反馈,并在https://bugs.eclipse.org/bugs/show_bug.cgi?id=528076提供了一个MCVE。编译与Eclipselink< = 2.6.x。

一起使用

google search让我看到上面提到的错误报告。

0 个答案:

没有答案