Building a scala app with maven (that has java source mixed in)

前端 未结 7 1323
执笔经年
执笔经年 2020-12-07 09:05

I have an application where I would like to have mixed Java and Scala source (actually its migrating a java app to scala - but a bit at a time).

I can make this wor

7条回答
  •  孤城傲影
    2020-12-07 09:47

    I solved this some time ago by having one Maven module written in Scala and the other in Java. But since Scala and Java can cross depend on one another (Java -> Scala -> Java or the other way around), then this is something very desirable without multi module projects.

    There is work underway in solving this, you can read about it here and a new version of the maven-scala-plugin will be released soon.

提交回复
热议问题