gpt4 book ai didi

scala - maven Scala 插件默认使用什么 Scala 版本?

转载 作者:行者123 更新时间:2023-12-01 09:56:38 35 4
gpt4 key购买 nike

Here链接到 maven Scala 插件使用。但没有提到它使用的究竟是什么 Scala 版本。我创建了具有以下配置的 Maven Scala 项目:

<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>

然后我构建有效的pom,maven Scala插件的插件部分是:

 <plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>

而且配置标签中也没有 Scala 版本。那么maven Scala插件默认使用的是什么Scala版本呢?

最佳答案

运行 mvn scala:console 目标并检查 version

关于scala - maven Scala 插件默认使用什么 Scala 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25255825/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com