8

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

James
  • 15,085
  • 25
  • 83
  • 120

1 Answers1

13

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.

zs2020
  • 53,766
  • 29
  • 154
  • 219
n_l
  • 844
  • 1
  • 6
  • 19