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

前端 未结 7 1277
执笔经年
执笔经年 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:51

    I once asked a very similar question about how to include non-Java code in a Maven project. The gist of the answer was to have under src a different directory for each programming language, and to find/write a Maven plugin that would know what to do with each. Eg:

    src/
    |-- main
    |   |-- bin
    |   |-- sh
    |   |-- sql
    |   |-- scala
    |   |-- java
    |   `-- resources
    |-- site
    ...
    

提交回复
热议问题