There are some existing similar questions based on codes, but I want to ask in a more general way.
Suppose there are java source code and scala source code, seems scala-maven-plugin
is to be added.
- So is there a default config which one is compiled first, scala or java?
- If we want scala code depends on java, or the opposite, how to do it? (like
scala-compile-first
in plugin?) - Is is possible that some scala code depends on java, while some java code also depends on scala?
process-resources
.For example see the docs: Mixed Java/Scala Projects – scala-maven-plugin or the integration test scala-maven-plugin/src/it at master · davidB/scala-maven-plugin