美文网首页
Failed to execute goal org.scala

Failed to execute goal org.scala

作者: 王国的荣耀 | 来源:发表于2021-04-14 01:17 被阅读0次
<plugin>
    <groupId>org.scala-tools</groupId>
    <artifactId>maven-scala-plugin</artifactId>
    <version>2.15.2</version>
    <executions>
        <execution>
            <goals>
                <goal>compile</goal>
                <goal>testCompile</goal>
            </goals>
        </execution>
    </executions>
</plugin>

编译报错:[ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.2

原因:打包的jdk版本不一致.

1.首先需要切换runtime.在idea的plugin 下载choose runtime插件 ,help->findAction ,等待一会儿,切换你安装的jdk版本。
2.安装完需要重启,但是之前破解过的idea需要重新破解.
3.确保所使用的jdk版本一致,编译通过。

相关文章

网友评论

      本文标题:Failed to execute goal org.scala

      本文链接:https://www.haomeiwen.com/subject/ovghlltx.html