3

Here link to maven Scala plugin usage. But it is not mentioned what exactly Scala version it uses. I have created maven Scala project with following configuration:

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

Then I build effective pom, the plugin section for maven Scala plugin is:

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

And also no Scala version in configuration tag. So what Scala version does maven Scala plugin use by default?

kiritsuku
  • 52,967
  • 18
  • 114
  • 136
Cherry
  • 31,309
  • 66
  • 224
  • 364
  • 1
    run the `mvn scala:console` goal and check the version http://scala-tools.org/mvnsites/maven-scala-plugin/example_console.html – jmj Aug 12 '14 at 03:49
  • It works! Why you did not post your comment as answer? :) – Cherry Aug 12 '14 at 03:51

1 Answers1

8

run the mvn scala:console goal and check the version

jmj
  • 237,923
  • 42
  • 401
  • 438