ideally using the FSC compiler
Question becomes what command or pom file set up should I use?
I'm currently using the scala maven plugin but it doesn't seem to actually use fsc
thanks
The default maven plugin does not support Scala out of the box, so you need to install the m2eclipse-scala connector. This connector understands the Scala maven plugin and links the compile phase to the Eclipse Scala Builder. You can install both plugins by pointing Eclipse to the m2eclipse-scala update site.
Once you familiarize yourself with how one Maven project builds you automatically know how all Maven projects build saving you immense amounts of time when trying to navigate many projects. On the other hand, SBT is detailed as "An open-source build tool for Scala and Java projects".
The scala-maven-plugin is used for compiling/testing/running/documenting scala code in maven.
You can run the fsc as part of the compile phase of maven by adding the following to the plugins section of your pom.xml
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>cc</id>
<goals>
<goal>cc</goal>
</goals>
<phase>compile</phase>
<configuration>
<useFsc>true</useFsc>
<once>true</once>
</configuration>
</execution>
</executions>
</plugin>
Of course you have to remove the standard scala compile execution from your POM if necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With