Search code examples
javamavenintellij-ideaconfluence

Is it possible to covert an existing multi-module project into a single module project in IntelliJ idea?


Here's the modules my project consist ofI am working on a relationship plugin project for confluence and my project contains multi- modules and now i want to convert it into a single module project. Any help would be appreciated.

I have not experimented anything just googling right now if i could find anything relevant.


Solution

  • It looks like you can merge them to a single module, sure.

    The one who created this project got a little eager with the number of modules that are required. Are they necessary or not? That depends on a lot of things.

    To merge them, copy the src/main/java and src/main/resources to the top level project, and go through the child pom.xml's to see if there are any properties, dependencies or plugin executions that also need to be moved up.

    disable the tag from the root pom and rename it as you please - check it builds with mvn clean install.

    Good luck :)