Reputation: 10055
When I create a SBT Scala project with Intellij Idea 14.0.3, I end up with the following project structure:
The problem is, src folder is under the project root and then there is the project node at the same level (highlighted in the screenshot)
I could not find any documentation that explains this layout and it is very confusing. I've managed to compile and deploy scala apps but what is that project node doing? What use do I have for it? What artefacts, if any are supposed to go under it?
Upvotes: 1
Views: 1170
Reputation: 5999
In general, and SBT project is a Scala project on its own, so you can in some cases see a whole hierarchy of "project" folders with their own artifacts, etc.
(your project) / project / project / ... (up to infinite complexity)
As a project, it can have its own sources, target, etc. In most cases you will never need to go into the project folder at all, but you might if you want to change the way SBT is doing things, for instance, to enable SBT plugins.
The src/, target/ etc. folders on the root of your project are the ones that apply for your project.
Upvotes: 1