Module & Maven


I developing a new Plugin for my own and here's my issue. I create multiple modules in one project. Each module has a different pom.xml file. How to mark this module as Maven Project. I read a lot of community post's about maven in IntelliJ but no one tries to mark the existing module as Maven Project.
For example when I create a new module programmatically and mark pom.xml by "Add as Maven Project" then work's fine. But how do this programmatically?

1 comment
Comment actions Permalink

See org.jetbrains.idea.maven.project.actions.AddFileAsMavenProjectAction. You can find related Actions' sources using UI Inspector


Please sign in to leave a comment.