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让我看到上面提到的错误报告。