Reputation: 5430
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?
Upvotes: 13
Views: 15433
Reputation: 5537
To create a new project that uses Scala:
To add a new module that uses Scala into existing project:
To add Scala support to existing module:
To manually configure existing module:
Create library "scala-compiler":
Classes:
Create library "scala-library":
Classes:
Sources:
Docs: /doc/scala-devel-docs/api/
(if you downloaded Scala as an archive, you need to get separate API docs archive and extract it so that \doc\scala-devel-docs\api exist; if you installed Scala using LzPack, then API docs are already there)
Hints:
Source: Project-configuration-explained
Upvotes: 2
Reputation: 5430
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
Upvotes: 21