简体   繁体   English

无法识别的目标字节码。 用 Groovy 编译 Java

[英]Unrecognized target bytecode. Compiling Java with Groovy

I saw couple of problems like this but none of the given advice helped me, so I add this.我看到了几个这样的问题,但给定的建议都没有帮助我,所以我添加了这个。 I have Java app and I migrate it to Java 11. I can run it but when i try to mvn install it i get tge error:我有 Java 应用程序,我将它迁移到 Java 11。我可以运行它,但是当我尝试mvn install它时,我得到 tge 错误:

Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.6:compileTests (default) on project osa-backend: Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:1.6:compileTests failed: Unrecognized target bytecode.无法在项目 osa-backend 上执行目标 org.codehaus.gmavenplus:gmavenplus-plugin:1.6:compileTests(默认):目标 org.codehaus.gmavenplus:gmavenplus-plugin:1.6:compileTests 的执行默认值失败:无法识别的目标字节码。

This is my plugin:这是我的插件:

 <plugin> <groupId>org.codehaus.gmavenplus</groupId> <artifactId>gmavenplus-plugin</artifactId> <version>1.6</version> <executions> <execution> <goals> <goal>compileTests</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>2.4.16</version> </dependency> </dependencies> </plugin>

Thanks for any suggestions cause I have no idea what can I change now.感谢您的任何建议,因为我不知道我现在可以改变什么。

This message is to warn you that your desired bytecode is not supported by the versions you currently have.此消息是为了警告您当前拥有的版本不支持您想要的字节码。

Targeting Java 11 bytecode requires Groovy 2.5.3/3.0.0-alpha-4 or newer and GMavenPlus 1.6.2 or newer.针对 Java 11 字节码需要 Groovy 2.5.3/3.0.0-alpha-4 或更高版本以及 GMavenPlus 1.6.2 或更高版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM