Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding maven support to existing IntelliJ module is not available

I just started an IntelliJ plugin project, and after going a few steps, I realized that I am not managing dependencies with maven. Naturally I head over to the module in the project explorer, and right click -> Add Framework Support. But Maven is not listed! In fact, the only thing listed is Groovy. What could cause this, and how do I get maven back?

The maven plugin is enabled.

like image 933
Niel de Wet Avatar asked Nov 21 '13 14:11

Niel de Wet


2 Answers

Here is a brief answer how to get going with Gradle, but most questions remain unanswered.

How to manage development life cycle of IntelliJ plugins with Maven

For a comprehensive read this post : http://labs.bsb.com/2013/11/how-to-manage-development-life-cycle-of-intellij-plugins-with-maven-2/

The post also includes a link to the source code on github.

Making your plugin project use maven in IntelliJ

This is probably not what you are struggling with, but I include it just in case. Supposing you have already started a new plugin project you have two options:

  1. Right-click on the project name in the project explorer and choose New > Module
  2. Create a pom.xml in the project root, then right-click on it and choose Add as Maven Project

hth

like image 78
Niel de Wet Avatar answered Sep 25 '22 00:09

Niel de Wet


First, make sure you have enabled maven plugin in

File -> Settings -> Plugins and add search the maven plugin and activate

Restart the IntelliJ.

Go and check the tool window to make it visible

go to View -> Tool Windows > Maven Projects to open it.

like image 25
Arpit Agarwal Avatar answered Sep 23 '22 00:09

Arpit Agarwal