Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up a multi-language project in IntelliJ IDEA

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!

like image 355
mr.nothing Avatar asked Feb 18 '13 12:02

mr.nothing


People also ask

How do I change the project language level in IntelliJ?

Module language levelFrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S . Under Project Settings, select Modules | Sources. From the Language level list, select the necessary option. To use the project language level, select Project default.

How do I open a multi module project in IntelliJ?

Import an existing moduleFrom the main menu, select File | New | Module from Existing Sources. In the dialog that opens, specify the path the . iml file of the module that you want to import, and click Open. By doing so, you are attaching another module to the project without physically moving any files.

How do I create a multi module Maven project in IntelliJ?

In the Project tool window, right-click the project folder and select New | Module. Alternatively, from the main menu, select File| New | Module to open the New Module wizard. If you used main menu to add a module then the process of adding a module is the same as Creating a new Maven project.


1 Answers

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.

like image 199
seanmcl Avatar answered Sep 29 '22 17:09

seanmcl