I have a project with 2 modules (from the IPR file):
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/20.0.iml" filepath="$PROJECT_DIR$/20.0.iml" />
<module fileurl="file://$PROJECT_DIR$/20.1.iml" filepath="$PROJECT_DIR$/20.1.iml" />
</modules>
</component>
The problem is that only the first module in this modules list is “active” and has its sources folder recognized as such. The second one is not built and the sources folder is displayed like a regular folder.
When I change the order of modules in the above XML the first one in the list becomes “active” instead.
How do I set it up so that both modules are built?
I’m using IDEA 9.
Did you try to right-click the inactive sources folder and choose
Mark directory as->Source root? Alternatively you can use Project Structure dialog and setup your source directories there.EDIT:
It seems Idea also expects modules and their iml files to be in separate subfolders.