默认情况下,在maven Scala插件中使用什么Scala版本?

Che*_*rry 3 scala maven maven-scala-plugin

这里链接到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>
Run Code Online (Sandbox Code Playgroud)

然后我构建了有效的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>
Run Code Online (Sandbox Code Playgroud)

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

Jig*_*shi 7

运行mvn scala:console目标并检查版本