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 consists of. I 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.

I have not experimented yet, I am just searching to see 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 <modules> tag from the root pom and rename it as you please - check it builds with mvn clean install.