I want to add an existing spring boot project into my Intellij collection project as a module.
Obviously if I open the spring boot project by itself, everything is configured correctly, but it's not configured correctly if I copy a spring boot project directly into the directory of the collection project where the modules go.
After I manually mark the directory as a sources root, I still need to set the classpath the way it would've been setup if importing the spring boot project directly.
What is the easiest way to finish configuring Project Structure for the directory so that it would work as if it was imported directly?
CodePudding user response:
I think that the link below will help you a lot:
https://www.jetbrains.com/help/idea/spring-projects.html
If not, can you try to describe more in detail the architecture of your files.
CodePudding user response:
You can try to close the IDE, backup and delete all .iml
files from your Spring project, open your main project in the IDE and use Import a module from existing sources to add your Spring project as a module.