Search code examples
mavenintellij-idea

How to mark/import subfolders as Maven projects in IntelliJ?


I have imported a project from git, where topmost folder does not contain any pom file. It has src folder and some java files under it's tree.

Simultaneously, it has several subfolders with pom files in each.

How to force IntelliJ think these are projects?


Solution

  • How to force IntelliJ think these are projects?

    You can add them as modules to your IDEA project. Open the Maven tool window and use the add button enter image description here to add them.

    If you want each to be a separate IDEA project, then simply use File > Project from Existing Sources for each one and select the pom file.

    enter image description here