Making custom plugin work with maven

I have a custom plugin which has its own ModuleType.
When Maven is used as build tool with my custom plugin project, my custom plugin works properly but the project is not considered as Maven project.

After debugging, I figured out that if the following line is removed from my code then the project is shown in Maven Project View but the project is no more CustomPlugin project.

module.setOption("type", CustomModuleType.MODULE_TYPE_ID);

Is there a way to make the project customPlugin project and work with maven plugin functionality too?

Please sign in to leave a comment.