Reputation: 2149
I am basically from windows development background and used visual studio very much. Recently, I am asked to worked on Java and I find Intellij IDEA community edition. I have one question, like how can I create multiple project in one solution? where we just build the top level solution and all sub-project builds automatically?
Any idea or tutorial in this case would be really helpful.
Upvotes: 5
Views: 3525
Reputation: 1127
You can add multiple Maven or Gradle projects to your IntelliJ-Projects by using the plus-button in the Maven/Gradle Projects toolbar. This opens a file browser that allows you to choose an additional .pom/.gradle file to add a project.
Afterwards you can create Build-Actions that build both projects at the same time using Maven or Gradle. Or you build everything using the IntelliJ build (Menu -> Build -> Make Project).
Having said that, 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.
Upvotes: 6
Reputation: 1
Create empty maven project. Next you can add maven modules to main project. Each one module you can treat as Project in Visual Studio and main Maven module as Solution. On build main project, all modules will be build.
Upvotes: 0