score:5

Accepted answer

The usual Maven directory structure is

src/
  main/
    java/
      com/foo/mypackage/
    scala/
      com/foo/mypackage/

If you set things up this way then for sure you can have cross dependencies between your Java and Scala code. See the maven-scala-plugin or scala-maven-plugin pages on the topic.

I would not recommend putting Java and Scala code in the same directory.


Related Query

More Query from same tag