Created
October 12, 2014 17:31
-
-
Save jangalinski/377b86b73751c108901b to your computer and use it in GitHub Desktop.
mixed compile with scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>${scala.version}</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>net.alchim31.maven</groupId> | |
<artifactId>scala-maven-plugin</artifactId> | |
<version>3.2.0</version> | |
<configuration> | |
<recompileMode>incremental</recompileMode> | |
<args> | |
<arg>-target:jvm-${java.version}</arg> | |
</args> | |
<javacArgs> | |
<javacArg>-source</javacArg> | |
<javacArg>${java.version}</javacArg> | |
<javacArg>-target</javacArg> | |
<javacArg>${java.version}</javacArg> | |
</javacArgs> | |
</configuration> | |
<executions> | |
<execution> | |
<id>scala-compile-first</id> | |
<phase>process-resources</phase> | |
<goals> | |
<goal>add-source</goal> | |
<goal>compile</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>scala-test-compile</id> | |
<phase>process-test-resources</phase> | |
<goals> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>default-compile</id> | |
<phase>none</phase> | |
</execution> | |
<execution> | |
<id>default-testCompile</id> | |
<phase>none</phase> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment