Reputation: 5399
Is there a way to open/import an IntelliJ IDEA project which contains different language source files? For example I have Java (Maven) + HTML + JavaScript and, unfortunately, I'm able to import only the Maven project. Is there a way to open/import the entire project as a single whole?
Thanks in advance!
Upvotes: 61
Views: 23171
Reputation: 9946
Import the project as a java project. Then in the 'Project Structure' box, click on the module and click the + sign. This allows you to add, e.g., a Python "facet" to the module. I use this frequently to develop mixed Java/Python modules.
Upvotes: 111
Reputation: 15990
I don't think there is a way of doing that.
You'll probably have to import the maven project and then add the rest of the folders, yourself, configure the correct plugins, etc.
At least that's what I do in a couple of projects where I have Java and Python source files in the mix.
Sometimes, it works even better to simply define different modules for the different types of "sub-project", especially when it's a whole different language and you happen to need to setup a compiler etc, I've ran into some problems with IntelliJ not recognizing my Python modules correctly when I mixed them up in a Java project. All went well when I created a separate module.
Upvotes: 0