javascalamavenintellij-idea

How to set up Java and Scala in one single Module in Intellij IDEA 11?


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?


Solution

  • I did not find a good Google result first. Got it working now. This site explains it very clearly:

    http://devnet.jetbrains.net/thread/290032