在使用EclipseLink 3.x进行编译期间,如何解决SecurityException“签名者信息与签名者信息不匹配”的问题?

Kar*_*ter 5 java eclipselink maven

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]
Run Code Online (Sandbox Code Playgroud)

在Java EE项目的实体JAR上。我几周前提交了错误报告,到目前为止没有任何反馈,并在https://bugs.eclipse.org/bugs/show_bug.cgi?id=528076提供了MCVE 。该编译在Eclipselink <= 2.6.x上运行良好。

一个谷歌搜索使我上面提到的错误报告。