[英]mixed scala/java project, which compile first?
有一些基於代碼的類似問題,但我想以更一般的方式提問。
假設有java源碼和scala源碼,好像要加上scala-maven-plugin
。
scala-compile-first
?)process-resources
之前的一個階段強制編譯 scala 代碼。 <plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<executions>
<execution>
<id>scala-compile-first</id>
<phase>process-resources</phase>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
</goals>
</execution>
...
例如,請參閱文檔: Mixed Java/Scala Projects – scala-maven-plugin或集成測試scala-maven-plugin/src/it at master · davidB/scala-maven-plugin
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.