默认情况下,maven Scala插件中使用的Scala版本是什么?
链接到maven Scala插件用法。但是没有提到它使用的Scala版本到底是什么。我已使用以下配置创建了maven Scala项目:默认情况下,maven Scala插件中使用的Scala版本是什么?,scala,maven,maven-scala-plugin,Scala,Maven,Maven Scala Plugin,链接到maven Scala插件用法。但是没有提到它使用的Scala版本到底是什么。我已使用以下配置创建了maven Scala项目: <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId> <executions> <execution>
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
org.scala-tools
maven scala插件
编译
测试编译
然后我构建了有效的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>
org.scala-tools
maven scala插件
编译
测试编译
配置标签中也没有Scala版本。那么maven Scala插件默认使用哪个Scala版本呢?运行
mvn Scala:console
目标并检查运行mvn Scala:console
目标并检查其工作的版本!为什么不将您的评论作为答案发布?:)