I have got IntelliJ 11. I use Maven for dependency management.
I want to create one module which contains Java and Scala source files. I have already added a folder "src/main/java" and "src/main/scala" under Project Settings => Module => "Module XYZ". The Scala facet is also added already.
What do I need to make IntelliJ compile both correctly?
I did not find a good Google result first. Got it working now. This site explains it very clearly: