How to create a multi-project structure in Intellij IDEA, for example Visual Studio

I am mainly from the background of window development and very often use visual studio. Recently, I have been asked to work in Java, and I find the Intellij IDEA edition. I have one question: how can I create several projects in one solution? where are we just building a top-level solution and all subprojects automatically?

Any idea or tutorial in this case will be really useful.

+4
source share
2 answers

You can add multiple Maven or Gradle projects to your IntelliJ projects using the plus button on the Maven / Gradle Projects toolbar. This opens a file browser that allows you to select an additional .pom / .gradle file to add the project.

You can then create Build-Actions that simultaneously create both projects using Maven or Gradle. Or you build everything using the IntelliJ build (Menu → Build → Make Project).

enter image description here

Having said that, the kardans solution works just as well and should always be preferred if you want to build all projects using the command line or continuous integration.

+4
source

maven. maven . , Project Visual Studio Maven . .

0

Source: https://habr.com/ru/post/1658431/


All Articles