[英]Openjpa maven plugin error: Failed to execute goal : enhance
I am working on a migration activity (JDK 1.8 to JDK 11) .我正在进行迁移活动(JDK 1.8 到 JDK 11) 。
<plugin>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<includes>**/entities/*.class</includes>
<excludes>**/entities/XML*.class</excludes>
<addDefaultConstructor>true</addDefaultConstructor>
<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
</configuration>
<executions>
<execution>
<id>enhancer</id>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>2.4.0</version>
</dependency>
</dependencies>
</plugin>
It was working fine with JDK 1.8, when I changed the JDK version to 11 I am facing this issue while running mvn install .它在 JDK 1.8 上运行良好,当我将 JDK 版本更改为 11 时,我在运行mvn install时遇到了这个问题。
below is the error I am getting.下面是我得到的错误。
Can anyone please help me with this.谁能帮我解决这个问题。
I got the solution, just changed the version org.apache.openjpa from 2.4.0 to 3.2.0.我得到了解决方案,只是将版本org.apache.openjpa从 2.4.0 更改为 3.2.0。 ( in logs there were error which was indicating towards 3.2.0 version).
(在日志中有错误指示 3.2.0 版本)。
may be compatibility issue with JDK11 but it solved the problem.可能是与 JDK11 的兼容性问题,但它解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.